#! /bin/csh -f
# Start of script compw3l.sh          R.E.Jones  90-06-12
#
echo Compile and place in library w3lib.a subroutine $1
#
# Example:  Compile subroutine q9ye32.f and put it into library w3lib
#
#           compw3l.sh q9ye32
#
rm    $1.o               # delete subroutine old object
# change -cg92 to -cg89 for SPARCstation 1, 1+, 2
f77 -c -O4 -cg89  $1.f   # compile subroutine
if ($status == 0) then
ar     r w3lib.a $1.o    # put subr. just compiled into library w3lib.a
ranlib w3lib.a           # randomize library
rm     $1.o              # delete subroutine new object
echo Subroutine $1 was compiled and placed in library w3lib.a
else
echo Compile error, subroutine $1 was not placed in library w3lib.a
endif
#
# End of script compw3l.sh
