Plan 9 from Bell Labs’s /usr/web/sources/contrib/rminnich/package/MAKEIT2

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
#go to /n/sources/contrib/<user>/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
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.