File:  [LON-CAPA] / loncom / homework / caparesponse / commands
Revision 1.11: download - view: text, annotated - select for diffs
Fri Jan 19 18:45:32 2001 UTC (23 years, 6 months ago) by harris41
Branches: MAIN
CVS tags: stable_2002_spring, stable_2002_april, stable_2001_fall, HEAD
fixing to not assume superuser status. -Scott

    1: CAPADIR=../../../CAPA
    2: 
    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: 		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
   23: 	fi
   24: 	if test -e /usr/include/linux
   25: 	then
   26: 		echo ""
   27: 	else
   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
   32: 	fi
   33: fi
   34: make -f Makefile clean
   35: mkdir capaFunctions
   36: path=`pwd`
   37: cd $CAPADIR/pProj
   38: make ARCH=LONCAPA libcapa
   39: cd $path
   40: cp $CAPADIR/pProj/LONCAPA/*.o capaFunctions
   41: swig -perl5 capa.i 
   42: cp Makefile.PL Makefile.pl
   43: perl Makefile.PL 
   44: make -f Makefile 
   45: cp blib/arch/auto/capa/capa.so . 
   46: perl capa.pm     

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