#!/bin/rc rfork en . funcs if (! test -d $build/sources/plan9/sys/src/9/pcboot) { echo 'no pcboot found' >[1=2] exit } rm -f $build/other/dist/* title='Plan 9' src9=/n/sources/plan9 dist=/sys/lib/dist scr=/n/other/dist cdstub=$dist/cdstub . $dist/setup ramfs -m $cdstub cp $src9/386/9load $cdstub cp $src9/386/pbsraw $cdstub cp $dist/pc/cddisk $cdstub/bootdisk.img bind -a $cdstub $src9 disk/mk9660 -9cj -v $title -s $src9 -B pbsraw -x 9load $scr/plan9.iso bzip2 -9 <$scr/plan9.iso >$dist/web.protect/plan9.iso.bz2 cd /sys/lib/dist/pc && mk clean