#!/bin/rc # # command: /bin/boddle /n/juke/plan_9/sys/src/cmd/units.y /n/dump/1995/0821/sys/src/cmd/units.y # srcdir: /n/juke/plan_9/sys/src/cmd # version: 811714733 # date: Thu Sep 21 16:18:53 EDT 1995 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 811714733 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/sys/src/cmd 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 811714733 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 811714733 mkdir 811714733 target=811714733/units.y echo -n '811714733/units.y: ' if(! test -f $srcdir/units.y || ! test -r $srcdir/units.y){ echo $srcdir/units.y unreadable exit unreadable } sum=`{sum < $srcdir/units.y} if(! ~ c359d39910048 $sum(1)^$sum(2)){ echo $srcdir/units.y is not the original distribution file exit original } cp $srcdir/units.y 811714733/units.y ed 811714733/units.y >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM units.y' 334c } else retnode2 = retnode1; . 132d 127d wq //GO.SYSIN DD VADIM units.y sum=`{sum < 811714733/units.y} if(~ 6460e3d810031 $sum(1)^$sum(2)) echo if not{ echo 811714733/units.y checksum error creating updated file exit checksum }