Diff for /loncom/homework/caparesponse/commands between versions 1.7 and 1.13

version 1.7, 2000/10/24 13:46:19 version 1.13, 2003/04/15 15:48:18
Line 1 Line 1
 CAPADIR=../../../CAPA  CAPADIR=../../../CAPA
   
 make -f Makefile clean  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
    echo "ERROR. You are missing a necessary symbolic link."
    echo "You should type, as superuser, a command like this:"
                   echo "   ln -s /usr/src/linux/include/asm /usr/include/asm"
    exit 1
    fi
    if test -e /usr/include/linux
    then
    echo ""
    else
    echo "ERROR. You are missing a necessary symbolic link."
    echo "You should type, as superuser, a command like this:"
                   echo "   ln -s /usr/src/linux/include/linux /usr/include/linux"
    exit 1
    fi
   fi
   if test -f Makefile
   then
    make -f Makefile clean
   fi
 mkdir capaFunctions  mkdir capaFunctions
 path=`pwd`  path=`pwd`
 cd $CAPADIR/pProj  cd $CAPADIR/pProj
Line 8  make ARCH=LONCAPA libcapa Line 42  make ARCH=LONCAPA libcapa
 cd $path  cd $path
 cp $CAPADIR/pProj/LONCAPA/*.o capaFunctions  cp $CAPADIR/pProj/LONCAPA/*.o capaFunctions
 swig -perl5 capa.i   swig -perl5 capa.i 
   dist=`perl ../../build/distprobe`
   if [ $dist = "redhat8" ] 
   then
    cat capa_wrap.c | perl -pe '$_=~s-SWIGEXPORT\(void,boot_capa\)\(CV\* cv\)\;-SWIGEXPORT\(void,boot_capa\)\(pTHX_ CV\* cv\)\;-;' > capa_wrap.c.new
    mv capa_wrap.c.new capa_wrap.c
   fi
 cp Makefile.PL Makefile.pl  cp Makefile.PL Makefile.pl
 perl Makefile.PL   perl Makefile.PL 
 make -f Makefile   make -f Makefile 

Removed from v.1.7  
changed lines
  Added in v.1.13


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