#!/bin/csh -f #(ie run the cshell on this but don't read the .cshrc) #!/bin/csh -f #(ie run the cshell on this but don't read the .cshrc) echo version = 1.01 of pb 1999 Nov 28 # 1999 nov 28, 1.01: only bell # origin before (?) 1995 October 24 echo '{DEBUG compiling '$1'}' if (`arch` == sun4) then echo architecture is Sun4. # if (`hostname` == kaylor || \ # `hostname` == sparky) then # set os = `uname -rs | cut -c1-7` set os = `uname -rs | cut -c1-7 | sed -e "s/ //"` echo on $os if ($os == SunOS5) then ver < $1.p # 1995 oct 19 the -Bstatic allows programs to # run on both Sparky and Kaylor # recompile if this message is seen: # ld.so.1: malign: fatal: libpc.so: can't open file: errno=2 # Killed # or # ld.so.1: /home/kaylor/toms/bin/malign: fatal: libpc.so: can't open file: errno=2 # Killed # clean the sun of a bitch stupid files out!!! cleansb >& /dev/null # up to 1996 jan 21: # /opt/SUNWspro/bin/pc -Bstatic $1.p -o $1 -sb # as of 1996 jan 21: # according to # nroff -ms /opt/SUNWspro/man/man1/debugger.1 | more # one must just the -g option # 1999 July 13: add array bound checking -C echo array bound checking is ON /opt/SUNWspro/bin/pc -Bstatic $1.p -o $1 -sb -g -C | more # don't do the following for the debug version: # /usr/local/bin/strip $1 echo '{'$1' done}' else echo -n '{compiling '$1'}' ver <$1.p #pc $1.p -s -V -C -O2 -o $1 /usr/ucb/pc $1.p -s -V -C -O2 -o $1 echo -n '{'$1' done using -C}' endif else if (`arch` == sun3) then echo You would even TRY on this slow thing? endif