create changelog entry
[debian/openrocket] / core / run.sh
1 #!/bin/bash
2
3 #
4 # This script runs the version of OpenRocket compiled by Eclipse from
5 # the bin/ directory.  You can provide Java arguments and OpenRocket
6 # arguments.
7 #
8
9 JAVAOPTS=""
10
11 while echo "$1" | grep -q "^-" ; do
12     JAVAOPTS="$JAVAOPTS $1"
13     shift
14 done
15
16 LIBS="bin/"
17 LIBS="$LIBS:resources/"
18 for i in lib/*.jar ; do
19     LIBS="$LIBS:$i"
20 done
21 LIBS="$LIBS:lib/jogl/gluegen-rt.jar"
22 LIBS="$LIBS:lib/jogl/jogl.all.jar"
23
24 java -cp $LIBS $JAVAOPTS net.sf.openrocket.startup.Startup "$@"
25