Annotation of loncom/homework/caparesponse/commands, revision 1.12

1.9       albertel    1: CAPADIR=../../../CAPA
1.2       albertel    2: 
1.10      harris41    3: if test -f /etc/redhat-release
                      4: then
                      5: 	if rpm -q swig
                      6: 	then
                      7: 		echo "Swig found.  Assuming it works..."
                      8: 	else
                      9: 		echo "ERROR ERROR: Swig must exist but doesn't!!!"
                     10: 		echo "To get swig, go to"
                     11: 		echo "http://install.lon-capa.org/3.1/SupplementalRPMS"
                     12: 		echo "Install this RPM, swig-1.1p5-3.i386.rpm"
                     13: 		exit 1
                     14: 	fi
                     15: 	if test -e /usr/include/asm
                     16: 	then
                     17: 		echo ""
                     18: 	else
1.11      harris41   19: 		echo "ERROR. You are missing a necessary symbolic link."
                     20: 		echo "You should type, as superuser, a command like this:"
                     21:                 echo "   ln -s /usr/src/linux/include/asm /usr/include/asm"
                     22: 		exit 1
1.10      harris41   23: 	fi
                     24: 	if test -e /usr/include/linux
                     25: 	then
                     26: 		echo ""
                     27: 	else
1.11      harris41   28: 		echo "ERROR. You are missing a necessary symbolic link."
                     29: 		echo "You should type, as superuser, a command like this:"
                     30:                 echo "   ln -s /usr/src/linux/include/linux /usr/include/linux"
                     31: 		exit 1
1.10      harris41   32: 	fi
                     33: fi
1.12    ! albertel   34: if test -f Makefile
        !            35: then
        !            36: 	make -f Makefile clean
        !            37: fi
1.2       albertel   38: mkdir capaFunctions
1.5       albertel   39: path=`pwd`
                     40: cd $CAPADIR/pProj
                     41: make ARCH=LONCAPA libcapa
                     42: cd $path
                     43: cp $CAPADIR/pProj/LONCAPA/*.o capaFunctions
1.3       albertel   44: swig -perl5 capa.i 
1.4       albertel   45: cp Makefile.PL Makefile.pl
1.1       albertel   46: perl Makefile.PL 
                     47: make -f Makefile 
1.3       albertel   48: cp blib/arch/auto/capa/capa.so . 
                     49: perl capa.pm     

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>