#!/usr/bin/ruby PORTAGE_DIR="/usr/portage/" #PORTAGE_DIR="/home/bangert/gentoo/test-portage" LOGDIR="/home/bangert/gentoo/repoman-log/" categories=`cat #{PORTAGE_DIR}/profiles/categories`.split() categories.map{ |x| Dir::chdir("#{PORTAGE_DIR}/#{x}") do puts x system("repoman full > #{LOGDIR + x}.log") end }