#!/bin/rc # # command: /bin/boddle /usr/rsc/plan9/cd/9/boot boot # srcdir: /usr/rsc/plan9/cd/9/boot # version: 898308915 # date: Sat Jun 20 02:15:15 GMT 1998 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 898308915 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/usr/rsc/plan9/cd/9/boot 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 898308915 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 898308915 mkdir 898308915 target=898308915/ip.c echo -n '898308915/ip.c: ' if(! test -f $srcdir/ip.c || ! test -r $srcdir/ip.c){ echo $srcdir/ip.c unreadable exit unreadable } sum=`{sum < $srcdir/ip.c} if(! ~ 4bc04dfb11911 $sum(1)^$sum(2)){ echo $srcdir/ip.c is not the original distribution file exit original } cp $srcdir/ip.c 898308915/ip.c ed 898308915/ip.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM ip.c' 602a . 382,383c if(plumb("#l0/ether0", "0x806", afd, 0) < 0) fatal("opening ip ether0"); . 307,308c if(plumb("#l0/ether0", "0x806", afd, 0) < 0) fatal("opening ip ether0"); . 106,107c if(plumb("#l0/ether0", "0x800", efd, 0) < 0) fatal("opening ip ether0"); . 103c myetheraddr(eaddr, "#l0/ether0"); . 50c return authil(); . 32a void bootp(Method *mp, int muxctlfd, uchar *useipaddr); . wq //GO.SYSIN DD VADIM ip.c sum=`{sum < 898308915/ip.c} if(~ c06c9dfa11986 $sum(1)^$sum(2)) echo if not{ echo 898308915/ip.c checksum error creating updated file exit checksum }