--- loncom/homework/caparesponse/commands 2001/01/06 16:26:35 1.9 +++ loncom/homework/caparesponse/commands 2001/01/17 18:01:31 1.10 @@ -1,5 +1,30 @@ CAPADIR=../../../CAPA +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 + ln -s /usr/src/linux/include/asm /usr/include/asm + fi + if test -e /usr/include/linux + then + echo "" + else + ln -s /usr/src/linux/include/linux /usr/include/linux + fi +fi make -f Makefile clean mkdir capaFunctions path=`pwd`