Plan 9 from Bell Labs’s /usr/web/sources/contrib/nemo/sys/lib/dist/planb/mkdist

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


#!/bin/rc

# Create the Plan B distribution according to changes
# as reported by /sys/src/README.PlanB

rfork ne
9fs planb
9fs once
CONF=/sys/src/README.PlanB
DEST=/n/once/4e

if (! test -d  $DEST ) {
	echo $DEST not found
	exit bad
}
if (! test -e  $CONF ) {
	echo $CONF not found
	exit bad
}

files=`{grep -v '^[ 	]*$' $CONF | grep -v '^#' }
sfiles=`{grep -v '^[ 	]*$' $CONF | grep -v '^#' | grep -v '^/386/'}
for (f in $files){
	if (! test -e $f ) {
		echo $f does not exist
		exit bad
	}
}
tar cv $files > $DEST/4e.tar
tar c $sfiles > $DEST/4e.src.tar
cd $DEST
gzip -9 4e.tar
gzip -9 4e.src.tar
ls -l 4e.*
echo cp $DEST/4e.tgz /usr/planb/doc/www/export/planb4e.tgz
echo cp $DEST/4e.src.tgz /usr/planb/doc/www/export/planb4e.src.tgz

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].