#!/bin/rc # # command: /bin/boddle /n/juke/plan_9/sys/src/cmd/seemail /sys/src/cmd/seemail # srcdir: /n/juke/plan_9/sys/src/cmd/seemail # version: 824324778 # date: Wed Feb 14 14:06:18 EST 1996 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 824324778 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/sys/src/cmd/seemail 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 824324778 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 824324778 mkdir 824324778 target=824324778/io.c echo -n '824324778/io.c: ' if(! test -f $srcdir/io.c || ! test -r $srcdir/io.c){ echo $srcdir/io.c unreadable exit unreadable } sum=`{sum < $srcdir/io.c} if(! ~ 7baa13ef3789 $sum(1)^$sum(2)){ echo $srcdir/io.c is not the original distribution file exit original } cp $srcdir/io.c 824324778/io.c ed 824324778/io.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM io.c' 110a } . 109c if(clean && (strcmp(&buf[1], machine) == 0)){ Bterm(mf); . wq //GO.SYSIN DD VADIM io.c sum=`{sum < 824324778/io.c} if(~ 113d4cc93808 $sum(1)^$sum(2)) echo if not{ echo 824324778/io.c checksum error creating updated file exit checksum }