File:  [LON-CAPA] / loncom / homework / caparesponse / commands
Revision 1.14: download - view: text, annotated - select for diffs
Tue Jul 1 17:57:08 2003 UTC (20 years, 11 months ago) by albertel
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_X, version_2_5_99_1, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_X, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, version_2_0_X, version_2_0_99_1, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0, version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_X, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0, version_1_1_3, version_1_1_2, version_1_1_1, version_1_1_0, version_1_0_99_3, version_1_0_99_2, version_1_0_99_1, version_1_0_99, version_1_0_3, version_1_0_2, version_1_0_1, version_1_0_0, version_0_99_5, version_0_99_4, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, bz6209-base, bz6209, bz5969, bz2851, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE, HEAD, GCI_3, GCI_2, GCI_1, BZ5971-printing-apage, BZ5434-fox, BZ4492-merge, BZ4492-feature_horizontal_radioresponse, BZ4492-feature_Support_horizontal_radioresponse, BZ4492-Support_horizontal_radioresponse
- works withj RH9 now

    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: if test -f Makefile
   35: then
   36: 	make -f Makefile clean
   37: fi
   38: mkdir capaFunctions
   39: path=`pwd`
   40: cd $CAPADIR/pProj
   41: make ARCH=LONCAPA libcapa
   42: cd $path
   43: cp $CAPADIR/pProj/LONCAPA/*.o capaFunctions
   44: swig -perl5 capa.i 
   45: dist=`perl ../../build/distprobe`
   46: if [[ $dist == "redhat8" || $dist == "redhat9" ]] 
   47: then
   48: 	cat capa_wrap.c | perl -pe '$_=~s-SWIGEXPORT\(void,boot_capa\)\(CV\* cv\)\;-SWIGEXPORT\(void,boot_capa\)\(pTHX_ CV\* cv\)\;-;' > capa_wrap.c.new
   49: 	mv capa_wrap.c.new capa_wrap.c
   50: fi
   51: cp Makefile.PL Makefile.pl
   52: perl Makefile.PL 
   53: make -f Makefile 
   54: cp blib/arch/auto/capa/capa.so . 
   55: perl capa.pm     

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