# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # * This file is part of SableVM. * # * See the file "LICENSE" for Copyright information and the * # * terms and conditions for copying, distribution and * # * modification of SableVM. * # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #===================================================================== # set version #===================================================================== VERSION=1.0.5 #===================================================================== # set location #===================================================================== if test x$1 == x ; then LOCATION=/usr/local else LOCATION=$1 fi #===================================================================== # compile and install SableVM native library #===================================================================== tar -xzf sablevm-native-library-$VERSION.tar.gz cd sablevm-native-library-$VERSION ./configure --prefix=$LOCATION make make install cd .. #===================================================================== # compile and install SableVM class library #===================================================================== tar -xzf sablevm-class-library-$VERSION.tar.gz cd sablevm-class-library-$VERSION mkdir classes find | grep \\.java$ | xargs jikes -g -d classes \ -bootclasspath src:classes -classpath src:classes -sourcepath src find resource -type f | cut -d\/ -f2- | \ awk '{print "cp resource/" $0 " classes/" $0 }' | sh chmod -R a+rX classes rm -rf $LOCATION/lib/sablevm/classes-$VERSION mv classes $LOCATION/lib/sablevm/classes-$VERSION cd .. #===================================================================== # compile and install SableVM #===================================================================== tar -xzf sablevm-$VERSION.tar.gz cd sablevm-$VERSION ./configure \ --prefix=$LOCATION make make install cd ..