#!/bin/sh # Create object files in $lib/h # if [ "$2" = "" ] then cd $lib/h f77 -e -c $lib/$1/*.for # # Create the library in $lib. Run ranlib to create table of content. # Delete the object files in $lib/h. # cd $lib rm lib$1.a ar rcv lib$1.a $lib/h/*.o rm $lib/h/*.o else cd $lib/h f77 -e -c $lib/$1/$2.for if [ $? = 0 ] then ar rv $lib/lib$1.a $lib/h/$2.o rm $lib/h/$2.o fi fi ranlib $lib/lib$1.a