Metropoli BBS
VIEWER: za MODE: TEXT (ASCII)
#!/bin/sh
# ----------------------------------------------------------------------------
# Description:
# Calls z to compile a CAPLIB2 source, then calls lib2 to add the object file
# to the archive.
#
# $HOME should be set to the path to the cap2 subdirectory, e.g. "/home/smitty"
# if it's /home/smitty/cap2.  $PATH should have $HOME/cap2/bat:$HOME/cap2/bin
# at it's front before invoking.
# ----------------------------------------------------------------------------
# Changelog:
# 920101 Created by Smitty.
# ----------------------------------------------------------------------------
z $1 $2 $3 $4
rc=$?
case $rc in
 0)	base=`basename $1`
 	lib2 $base ;;
 *)	echo "bad compile = $rc"
	read ltr ;;
esac
[ RETURN TO DIRECTORY ]