#!/bin/rc #go to /n/sources/contrib//replica/ # #for i in */db #cd root #mkpaqfs -name $i `cat $i` # #Then we have all paqfs. Those get moved #to a web server and a list is created # #Then pkginstall is simply hget blah > $home/packages # #Then mount and bind it. pdir=`{pwd} packpath=/n/sources/contrib/rminnich/package/packages # by doing the for this way we verify the presence of the replica directory. # Lazy! >/tmp/test for (contributor in /n/sources/contrib/*/replica) { echo $contributor cd $contributor cd .. pwd for (db in replica/*/db) { echo "DB " $db package=`{echo $db | sed s,/db,, | sed s,replica/,,} echo "Package" $package pwd # simple at first # {echo . ; echo echo $db; echo replica/$package/dep;awk '{print "root/"$1}' $db} | mkpaqfs -i >$packpath/$package {echo . ; awk '{print "./root/"$1}' $db} | mkpaqfs -i >$packpath/$package pwd } sleep 1000 }