#!/bin/rc # # command: /bin/boddle /n/juke/plan_9/sys/src/ape/lib/ap/stdio/strerror.c /n/dump/1995/0822/sys/src/ape/lib/ap/stdio/strerror.c # srcdir: /n/juke/plan_9/sys/src/ape/lib/ap/stdio # version: 811715089 # date: Thu Sep 21 16:24:49 EDT 1995 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 811715089 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/sys/src/ape/lib/ap/stdio 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 811715089 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 811715089 mkdir 811715089 target=811715089/strerror.c echo -n '811715089/strerror.c: ' if(! test -f $srcdir/strerror.c || ! test -r $srcdir/strerror.c){ echo $srcdir/strerror.c unreadable exit unreadable } sum=`{sum < $srcdir/strerror.c} if(! ~ 3d2734d31706 $sum(1)^$sum(2)){ echo $srcdir/strerror.c is not the original distribution file exit original } cp $srcdir/strerror.c 811715089/strerror.c ed 811715089/strerror.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM strerror.c' 57a "Protocol family not supported", . wq //GO.SYSIN DD VADIM strerror.c sum=`{sum < 811715089/strerror.c} if(~ 3ab71b2d1740 $sum(1)^$sum(2)) echo if not{ echo 811715089/strerror.c checksum error creating updated file exit checksum }