From 365f1eadaa969e807dd8906a3291100b4a37def6 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 1 Dec 1997 14:50:52 +0000 Subject: dded error checking to scripts (This used to be commit b7e1265f106010e03d92575f4578162ec659994b) --- packaging/SGI/mkrelease.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'packaging/SGI/mkrelease.sh') diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index fed7a5dc42..fcf247d9b4 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -8,21 +8,50 @@ # echo Making manual pages ./mkman +errstat=$? +if [ $errstat -ne 0 ]; then + echo "Error $errstat making manual pages\n"; + exit $errstat; +fi # build the sources # echo Making binaries ./makefile.pl $1 # create the Makefile for the specified OS ver +errstat=$? +if [ $errstat -ne 0 ]; then + echo "Error $errstat creating Makefile\n"; + exit $errstat; +fi + cd ../../source # make -f ../packaging/SGI/Makefile clean make -f ../packaging/SGI/Makefile all +errstat=$? +if [ $errstat -ne 0 ]; then + echo "Error $errstat building sources\n"; + exit $errstat; +fi + cd ../packaging/SGI # generate the packages # echo Generating Inst Packages ./spec.pl # create the samba.spec file +errstat=$? +if [ $errstat -ne 0 ]; then + echo "Error $errstat creating samba.spec\n"; + exit $errstat; +fi + ./idb.pl # create the samba.idb file +errstat=$? +if [ $errstat -ne 0 ]; then + echo "Error $errstat creating samba.idb\n"; + exit $errstat; +fi + if [ ! -d bins ]; then mkdir bins fi -- cgit