#!/bin/rc # # command: /bin/boddle /usr/forsyth/cd/cmd/2c 2c # srcdir: /usr/forsyth/cd/cmd/2c # version: 817134808 # date: Thu Nov 23 13:53:28 GMT 1995 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 817134808 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/usr/forsyth/cd/cmd/2c 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 817134808 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 817134808 mkdir 817134808 target=817134808/2.out.h echo -n '817134808/2.out.h: ' if(! test -f $srcdir/2.out.h || ! test -r $srcdir/2.out.h){ echo $srcdir/2.out.h unreadable exit unreadable } sum=`{sum < $srcdir/2.out.h} if(! ~ 0d447a715065 $sum(1)^$sum(2)){ echo $srcdir/2.out.h is not the original distribution file exit original } cp $srcdir/2.out.h 817134808/2.out.h ed 817134808/2.out.h >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM 2.out.h' 482c D_MASK = 63/(D_PCSR>=63?0:1), . 479a D_TT0, /* new for 68030 */ D_TT1, D_PSR, D_PCSR, . wq //GO.SYSIN DD VADIM 2.out.h sum=`{sum < 817134808/2.out.h} if(~ 35b78a135121 $sum(1)^$sum(2)) echo if not{ echo 817134808/2.out.h checksum error creating updated file exit checksum } target=817134808/list.c echo -n '817134808/list.c: ' if(! test -f $srcdir/list.c || ! test -r $srcdir/list.c){ echo $srcdir/list.c unreadable exit unreadable } sum=`{sum < $srcdir/list.c} if(! ~ d4b3fb594956 $sum(1)^$sum(2)){ echo $srcdir/list.c is not the original distribution file exit original } cp $srcdir/list.c 817134808/list.c ed 817134808/list.c >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM list.c' 277a case D_TT0: /* 68030 */ sprint(str, "TT0"); break; case D_TT1: /* 68030 */ sprint(str, "TT1"); break; case D_PSR: /* 68030 */ sprint(str, "PSR"); break; case D_PCSR: /* 68030 */ sprint(str, "PCSR"); break; . wq //GO.SYSIN DD VADIM list.c sum=`{sum < 817134808/list.c} if(~ 513c1ce35186 $sum(1)^$sum(2)) echo if not{ echo 817134808/list.c checksum error creating updated file exit checksum }