#!/bin/rc # # command: /bin/boddle /n/juke/plan_9/sys/include/panel.h /sys/include/panel.h # srcdir: /n/juke/plan_9/sys/include # version: 836403535 # date: Wed Jul 3 10:18:55 EDT 1996 # myname=$0 doextract=no fn usage{ echo $myname: usage: $myname '[-X] [src-directory]' >[1=2] exit usage } fn sigint{ rm -rf 836403535 exit interrupt } while(~ $1 -*){ switch($1){ case -X doextract=yes case -* usage } shift } switch($#*){ case 0 srcdir=/sys/include 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 836403535 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 836403535 mkdir 836403535 target=836403535/panel.h echo -n '836403535/panel.h: ' if(! test -f $srcdir/panel.h || ! test -r $srcdir/panel.h){ echo $srcdir/panel.h unreadable exit unreadable } sum=`{sum < $srcdir/panel.h} if(! ~ efd2b7cb8186 $sum(1)^$sum(2)){ echo $srcdir/panel.h is not the original distribution file exit original } cp $srcdir/panel.h 836403535/panel.h ed 836403535/panel.h >/dev/null >[2=1] <<'//GO.SYSIN DD VADIM panel.h' 159,160c int plgetpostextview(Panel *); void plsetpostextview(Panel *, int); . 90a /* * Priorities */ #define PRI_NORMAL 0 /* ordinary panels */ #define PRI_POPUP 1 /* popup menus */ #define PRI_SCROLLBAR 2 /* scroll bars */ . 49a int (*pri)(Panel *, Point); /* priority for hitting */ . wq //GO.SYSIN DD VADIM panel.h sum=`{sum < 836403535/panel.h} if(~ 402a412d8384 $sum(1)^$sum(2)) echo if not{ echo 836403535/panel.h checksum error creating updated file exit checksum }