#!/bin/rc # # command: /bin/boddle /n/juke/plan_9/sys/src/cmd/kc /sys/src/cmd/kc # srcdir: /n/juke/plan_9/sys/src/cmd/kc # version: 822682152 # date: Fri Jan 26 13:49:12 EST 1996 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 822682152 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/sys/src/cmd/kc 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 822682152 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 822682152 mkdir 822682152 target=822682152/cgen.c echo -n '822682152/cgen.c: ' if(! test -f $srcdir/cgen.c || ! test -r $srcdir/cgen.c){ echo $srcdir/cgen.c unreadable exit unreadable } sum=`{sum < $srcdir/cgen.c} if(! ~ d2b7ae4c17867 $sum(1)^$sum(2)){ echo $srcdir/cgen.c is not the original distribution file exit original } cp $srcdir/cgen.c 822682152/cgen.c ed 822682152/cgen.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM cgen.c' 887d 880c nod4.vconst = t->offset; . 68c if(r->complex >= FNX && nn == Z) regret(&nod, r); else regalloc(&nod, r, nn); . wq //GO.SYSIN DD VADIM cgen.c sum=`{sum < 822682152/cgen.c} if(~ 4562eaa517894 $sum(1)^$sum(2)) echo if not{ echo 822682152/cgen.c checksum error creating updated file exit checksum }