openrocket/run.sh

26 lines
486 B
Bash
Raw Normal View History

2010-07-22 07:21:37 +00:00
#!/bin/bash
#
# This script runs the version of OpenRocket compiled by Eclipse from
# the bin/ directory. You can provide Java arguments and OpenRocket
# arguments.
#
JAVAOPTS=""
while echo "$1" | grep -q "^-" ; do
JAVAOPTS="$JAVAOPTS $1"
shift
done
2012-08-04 08:46:33 +00:00
LIBS="bin/"
LIBS="$LIBS:resources/"
for i in lib/*.jar ; do
LIBS="$LIBS:$i"
done
LIBS="$LIBS:lib/jogl/gluegen-rt.jar"
LIBS="$LIBS:lib/jogl/jogl.all.jar"
2010-07-22 07:21:37 +00:00
2012-08-04 08:46:33 +00:00
java -cp $LIBS $JAVAOPTS net.sf.openrocket.startup.Startup "$@"
2010-07-22 07:21:37 +00:00