--- loncom/homework/caparesponse/commands 2000/09/26 19:29:07 1.6 +++ loncom/homework/caparesponse/commands 2002/05/04 17:57:01 1.12 @@ -1,6 +1,40 @@ -CAPADIR=/home/harris41/LON-CAPA-topdir_for_build/SOURCES/CAPA +CAPADIR=../../../CAPA -make -f Makefile clean +if test -f /etc/redhat-release +then + if rpm -q swig + then + echo "Swig found. Assuming it works..." + else + echo "ERROR ERROR: Swig must exist but doesn't!!!" + echo "To get swig, go to" + echo "http://install.lon-capa.org/3.1/SupplementalRPMS" + echo "Install this RPM, swig-1.1p5-3.i386.rpm" + exit 1 + fi + if test -e /usr/include/asm + then + echo "" + else + echo "ERROR. You are missing a necessary symbolic link." + echo "You should type, as superuser, a command like this:" + echo " ln -s /usr/src/linux/include/asm /usr/include/asm" + exit 1 + fi + if test -e /usr/include/linux + then + echo "" + else + echo "ERROR. You are missing a necessary symbolic link." + echo "You should type, as superuser, a command like this:" + echo " ln -s /usr/src/linux/include/linux /usr/include/linux" + exit 1 + fi +fi +if test -f Makefile +then + make -f Makefile clean +fi mkdir capaFunctions path=`pwd` cd $CAPADIR/pProj