#!/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: 816406603 # date: Tue Nov 14 22:36:43 EST 1995 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 816406603 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 816406603 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 816406603 mkdir 816406603 target=816406603/cache.c echo -n '816406603/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 816406603/cache.c ed 816406603/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 < 816406603/cache.c} if(~ f23e707b1033 $sum(1)^$sum(2)) echo if not{ echo 816406603/cache.c checksum error creating updated file exit checksum } target=816406603/ip.c echo -n '816406603/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 816406603/ip.c ed 816406603/ip.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM ip.c' 50c return authil(); . wq //GO.SYSIN DD VADIM ip.c sum=`{sum < 816406603/ip.c} if(~ b006264511917 $sum(1)^$sum(2)) echo if not{ echo 816406603/ip.c checksum error creating updated file exit checksum } target=816406603/local.c echo -n '816406603/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 816406603/local.c ed 816406603/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 < 816406603/local.c} if(~ b5db8a0b2055 $sum(1)^$sum(2)) echo if not{ echo 816406603/local.c checksum error creating updated file exit checksum }