#!/bin/rc # # command: /bin/boddle /n/juke/plan_9/sys/src/cmd/auth/lib/readln.c /n/dump/1995/0819/sys/src/cmd/auth/lib/readln.c # srcdir: /n/juke/plan_9/sys/src/cmd/auth/lib # version: 811713049 # date: Thu Sep 21 15:50:49 EDT 1995 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 811713049 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/sys/src/cmd/auth/lib 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 811713049 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 811713049 mkdir 811713049 target=811713049/readln.c echo -n '811713049/readln.c: ' if(! test -f $srcdir/readln.c || ! test -r $srcdir/readln.c){ echo $srcdir/readln.c unreadable exit unreadable } sum=`{sum < $srcdir/readln.c} if(! ~ 132d2c511229 $sum(1)^$sum(2)){ echo $srcdir/readln.c is not the original distribution file exit original } cp $srcdir/readln.c 811713049/readln.c ed 811713049/readln.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM readln.c' 54a } . 53c if(raw){ write(ctl, "rawoff", 6); . wq //GO.SYSIN DD VADIM readln.c sum=`{sum < 811713049/readln.c} if(~ da84606d1264 $sum(1)^$sum(2)) echo if not{ echo 811713049/readln.c checksum error creating updated file exit checksum }