#! /bin/sh # # wrapper to start evm in a manner similar to starting java to run # apps on other platforms. copyright 2002/03/20 by Brett Wynkoop # # # This software is released under the GNU public license. You can # obtain a copy of the GPL at # http://www.gnu.org/licenses/gpl.txt # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/QtPalmtop/bin/:/usr/local/bin LD_LIBRARY_PATH=/home/QtPalmtop/lib:/usr/lib:/usr/local/lib export PATH LD_LIBRARY_PATH ARGNUM=0 for ARG in $@ do ARGNUM=`expr $ARGNUM + 1` if [ x$ARG = x-jar ] then LASTARG=$ARG ARG="" fi if [ x$LASTARG = x-jar ] then if [ x$ARG != x ] then NEWCP=$ARG JPROG=`basename $NEWCP .jar` NEWCP=" -cp $NEWCP " ARG="" LASTARG="" fi fi NEWARGS="$NEWARGS $ARG" done NEWARGS="$NEWARGS $NEWCP $JPROG" exec evm $NEWARGS