#!/bin/rc # # command: /bin/boddle /n/juke/plan_9/sys/src/cmd/acme /sys/src/cmd/acme # srcdir: /n/juke/plan_9/sys/src/cmd/acme # version: 841351716 # date: Thu Aug 29 16:48:36 EDT 1996 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 841351716 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/sys/src/cmd/acme 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 841351716 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 841351716 mkdir 841351716 target=841351716/dat.h echo -n '841351716/dat.h: ' if(! test -f $srcdir/dat.h || ! test -r $srcdir/dat.h){ echo $srcdir/dat.h unreadable exit unreadable } sum=`{sum < $srcdir/dat.h} if(! ~ f761729a9018 $sum(1)^$sum(2)){ echo $srcdir/dat.h is not the original distribution file exit original } cp $srcdir/dat.h 841351716/dat.h ed 841351716/dat.h >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM dat.h' 57c uint addr; /* length of temp file */ . wq //GO.SYSIN DD VADIM dat.h sum=`{sum < 841351716/dat.h} if(~ 85bd63ff9019 $sum(1)^$sum(2)) echo if not{ echo 841351716/dat.h checksum error creating updated file exit checksum } target=841351716/disk.l echo -n '841351716/disk.l: ' if(! test -f $srcdir/disk.l || ! test -r $srcdir/disk.l){ echo $srcdir/disk.l unreadable exit unreadable } sum=`{sum < $srcdir/disk.l} if(! ~ 19c9abe82012 $sum(1)^$sum(2)){ echo $srcdir/disk.l is not the original distribution file exit original } cp $srcdir/disk.l 841351716/disk.l ed 841351716/disk.l >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM disk.l' 18a d->fd = -1; . wq //GO.SYSIN DD VADIM disk.l sum=`{sum < 841351716/disk.l} if(~ 54a847702025 $sum(1)^$sum(2)) echo if not{ echo 841351716/disk.l checksum error creating updated file exit checksum } target=841351716/file.l echo -n '841351716/file.l: ' if(! test -f $srcdir/file.l || ! test -r $srcdir/file.l){ echo $srcdir/file.l unreadable exit unreadable } sum=`{sum < $srcdir/file.l} if(! ~ 84c0754e5168 $sum(1)^$sum(2)){ echo $srcdir/file.l is not the original distribution file exit original } cp $srcdir/file.l 841351716/file.l ed 841351716/file.l >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM file.l' 273a free(f); . wq //GO.SYSIN DD VADIM file.l sum=`{sum < 841351716/file.l} if(~ ffc59aa55178 $sum(1)^$sum(2)) echo if not{ echo 841351716/file.l checksum error creating updated file exit checksum } target=841351716/look.l echo -n '841351716/look.l: ' if(! test -f $srcdir/look.l || ! test -r $srcdir/look.l){ echo $srcdir/look.l unreadable exit unreadable } sum=`{sum < $srcdir/look.l} if(! ~ bc5d56c811295 $sum(1)^$sum(2)){ echo $srcdir/look.l is not the original distribution file exit original } cp $srcdir/look.l 841351716/look.l ed 841351716/look.l >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM look.l' 362c while(q1file->nc-1 && isaddrc(t->readc(q1))) . 360c if(colon>=0 && colonfile->nc-1 && isaddrc(t->readc(colon+1))){ . wq //GO.SYSIN DD VADIM look.l sum=`{sum < 841351716/look.l} if(~ 1b0541c811299 $sum(1)^$sum(2)) echo if not{ echo 841351716/look.l checksum error creating updated file exit checksum } target=841351716/rows.l echo -n '841351716/rows.l: ' if(! test -f $srcdir/rows.l || ! test -r $srcdir/rows.l){ echo $srcdir/rows.l unreadable exit unreadable } sum=`{sum < $srcdir/rows.l} if(! ~ bbbf5a0013444 $sum(1)^$sum(2)){ echo $srcdir/rows.l is not the original distribution file exit original } cp $srcdir/rows.l 841351716/rows.l ed 841351716/rows.l >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM rows.l' 662a w->maxlines = min(w->body.nlines, max(w->maxlines, w->body.maxlines)); . 626c sprint(buf, "/tmp/d%d.%.4sacme", getpid(), getuser()); . 607a l[b->linelen()-1] = 0; . 494c .Reffont.get(i, TRUE, i==0 && initing, strdup(l)); . 166,169c if(p.x < d->r.min.x+80+Scrollwid) p.x = d->r.min.x+80+Scrollwid; if(p.x > c->r.max.x-80-Scrollwid) p.x = c->r.max.x-80-Scrollwid; . 73a reffont.inc(); . wq //GO.SYSIN DD VADIM rows.l sum=`{sum < 841351716/rows.l} if(~ e20113a613567 $sum(1)^$sum(2)) echo if not{ echo 841351716/rows.l checksum error creating updated file exit checksum } target=841351716/text.l echo -n '841351716/text.l: ' if(! test -f $srcdir/text.l || ! test -r $srcdir/text.l){ echo $srcdir/text.l unreadable exit unreadable } sum=`{sum < $srcdir/text.l} if(! ~ b40afaf620107 $sum(1)^$sum(2)){ echo $srcdir/text.l is not the original distribution file exit original } cp $srcdir/text.l 841351716/text.l ed 841351716/text.l >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM text.l' 70a t->file = nil; . wq //GO.SYSIN DD VADIM text.l sum=`{sum < 841351716/text.l} if(~ 59862d5f20123 $sum(1)^$sum(2)) echo if not{ echo 841351716/text.l checksum error creating updated file exit checksum } target=841351716/util.l echo -n '841351716/util.l: ' if(! test -f $srcdir/util.l || ! test -r $srcdir/util.l){ echo $srcdir/util.l unreadable exit unreadable } sum=`{sum < $srcdir/util.l} if(! ~ 4a80560f5792 $sum(1)^$sum(2)){ echo $srcdir/util.l is not the original distribution file exit original } cp $srcdir/util.l 841351716/util.l ed 841351716/util.l >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM util.l' 216a if(n == 0) return nil; . wq //GO.SYSIN DD VADIM util.l sum=`{sum < 841351716/util.l} if(~ ddcc960b5818 $sum(1)^$sum(2)) echo if not{ echo 841351716/util.l checksum error creating updated file exit checksum } target=841351716/wind.l echo -n '841351716/wind.l: ' if(! test -f $srcdir/wind.l || ! test -r $srcdir/wind.l){ echo $srcdir/wind.l unreadable exit unreadable } sum=`{sum < $srcdir/wind.l} if(! ~ d365d5989929 $sum(1)^$sum(2)){ echo $srcdir/wind.l is not the original distribution file exit original } cp $srcdir/wind.l 841351716/wind.l ed 841351716/wind.l >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM wind.l' 427a free(r); . wq //GO.SYSIN DD VADIM wind.l sum=`{sum < 841351716/wind.l} if(~ 7af50d6e9939 $sum(1)^$sum(2)) echo if not{ echo 841351716/wind.l checksum error creating updated file exit checksum }