#!/bin/rc # # command: /bin/boddle /n/juke/plan_9/sys/src/9/boot /sys/lib/pcdist/src/9/boot # srcdir: /n/juke/plan_9/sys/src/9/boot # version: 824494004 # date: Fri Feb 16 13:06:44 EST 1996 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 824494004 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/sys/src/9/boot case 1 srcdir=$1 case * usage } if(! ~ $doextract yes){ echo This shell file contains a bundle of diffs representing changes echo to original source files in the Plan 9 distribution. It will run echo against the files in echo ' ' $srcdir echo '(unless overridden by the optional source directory argument)' echo and create a directory 824494004 containing the updated files. echo It will NOT automatically update the original files. echo echo Invoke with argument -X to perform the actual extraction. exit 0 } rm -rf 824494004 mkdir 824494004 target=824494004/boot.c echo -n '824494004/boot.c: ' if(! test -f $srcdir/boot.c || ! test -r $srcdir/boot.c){ echo $srcdir/boot.c unreadable exit unreadable } sum=`{sum < $srcdir/boot.c} if(! ~ 0a838d4f3917 $sum(1)^$sum(2)){ echo $srcdir/boot.c is not the original distribution file exit original } cp $srcdir/boot.c 824494004/boot.c ed 824494004/boot.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM boot.c' 159c static Method* . wq //GO.SYSIN DD VADIM boot.c sum=`{sum < 824494004/boot.c} if(~ c321d1703924 $sum(1)^$sum(2)) echo if not{ echo 824494004/boot.c checksum error creating updated file exit checksum } target=824494004/cache.c echo -n '824494004/cache.c: ' if(! test -f $srcdir/cache.c || ! test -r $srcdir/cache.c){ echo $srcdir/cache.c unreadable exit unreadable } sum=`{sum < $srcdir/cache.c} if(! ~ 352b6fe1989 $sum(1)^$sum(2)){ echo $srcdir/cache.c is not the original distribution file exit original } cp $srcdir/cache.c 824494004/cache.c ed 824494004/cache.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM cache.c' 17a if(pp = strchr(bd, ':')) *pp = 0; . 10c char partition[2*NAMELEN], *pp; . wq //GO.SYSIN DD VADIM cache.c sum=`{sum < 824494004/cache.c} if(~ f23e707b1033 $sum(1)^$sum(2)) echo if not{ echo 824494004/cache.c checksum error creating updated file exit checksum } target=824494004/dosboot.c echo -n '824494004/dosboot.c: ' if(! test -f $srcdir/dosboot.c || ! test -r $srcdir/dosboot.c){ echo $srcdir/dosboot.c unreadable exit unreadable } sum=`{sum < $srcdir/dosboot.c} if(! ~ adb76a083257 $sum(1)^$sum(2)){ echo $srcdir/dosboot.c is not the original distribution file exit original } cp $srcdir/dosboot.c 824494004/dosboot.c ed 824494004/dosboot.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM dosboot.c' 118c static Method* . wq //GO.SYSIN DD VADIM dosboot.c sum=`{sum < 824494004/dosboot.c} if(~ f10924dd3264 $sum(1)^$sum(2)) echo if not{ echo 824494004/dosboot.c checksum error creating updated file exit checksum } target=824494004/ip.c echo -n '824494004/ip.c: ' if(! test -f $srcdir/ip.c || ! test -r $srcdir/ip.c){ echo $srcdir/ip.c unreadable exit unreadable } sum=`{sum < $srcdir/ip.c} if(! ~ 4bc04dfb11911 $sum(1)^$sum(2)){ echo $srcdir/ip.c is not the original distribution file exit original } cp $srcdir/ip.c 824494004/ip.c ed 824494004/ip.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM ip.c' 50c return authil(); . wq //GO.SYSIN DD VADIM ip.c sum=`{sum < 824494004/ip.c} if(~ b006264511917 $sum(1)^$sum(2)) echo if not{ echo 824494004/ip.c checksum error creating updated file exit checksum } target=824494004/local.c echo -n '824494004/local.c: ' if(! test -f $srcdir/local.c || ! test -r $srcdir/local.c){ echo $srcdir/local.c unreadable exit unreadable } sum=`{sum < $srcdir/local.c} if(! ~ cc47e23c1981 $sum(1)^$sum(2)){ echo $srcdir/local.c is not the original distribution file exit original } cp $srcdir/local.c 824494004/local.c ed 824494004/local.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM local.c' 77a if(pp) *pp = ':'; . 74a if(pp = strchr(partition, ':')) *pp = 0; . 66c char partition[2*NAMELEN], *pp; . wq //GO.SYSIN DD VADIM local.c sum=`{sum < 824494004/local.c} if(~ b5db8a0b2055 $sum(1)^$sum(2)) echo if not{ echo 824494004/local.c checksum error creating updated file exit checksum }