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

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
        !            19: 		ln -s /usr/src/linux/include/asm /usr/include/asm
        !            20: 	fi
        !            21: 	if test -e /usr/include/linux
        !            22: 	then
        !            23: 		echo ""
        !            24: 	else
        !            25: 		ln -s /usr/src/linux/include/linux /usr/include/linux
        !            26: 	fi
        !            27: fi
1.1       albertel   28: make -f Makefile clean
1.2       albertel   29: mkdir capaFunctions
1.5       albertel   30: path=`pwd`
                     31: cd $CAPADIR/pProj
                     32: make ARCH=LONCAPA libcapa
                     33: cd $path
                     34: cp $CAPADIR/pProj/LONCAPA/*.o capaFunctions
1.3       albertel   35: swig -perl5 capa.i 
1.4       albertel   36: cp Makefile.PL Makefile.pl
1.1       albertel   37: perl Makefile.PL 
                     38: make -f Makefile 
1.3       albertel   39: cp blib/arch/auto/capa/capa.so . 
                     40: perl capa.pm     

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