Metropoli BBS
VIEWER: buglib2 MODE: TEXT (ASCII)
#!/bin/sh
#--------------------------------------------------------------------------
# Description:
# Recompiles all of the source that uses mem debugging.
# apldebug.h will temporarily be set to 1 during the compiles to generate
# debugging code.
#
# $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 Smitty created.
#--------------------------------------------------------------------------
echo "Creating $HOME/cap2/lib/libbug2.a"
echo "First I'll copy libcap2.a to libbug2.a."
cp $HOME/cap2/lib/libcap2.a $HOME/cap2/lib/libbug2.a
cd $HOME/cap2/source
echo "Now I'll recompile stuff with mem debugging turned on."
for i in aplfree aplinit aplmall errinit errstop execexed funcexec \
funcexed funcexee funcsusp
do
	echo "Doing $i"
	zad $i
done
exit 0
[ RETURN TO DIRECTORY ]