1 *** geogebra-old 2011-10-20 20:52:05.074061651 +0200
2 --- geogebra 2011-10-20 20:54:09.590053756 +0200
6 #---------------------------------------------
7 # Used environment variables:
9 ! # GG_SCRIPTNAME=<name of originally called script to start GeoGebra> # If unset, name of this script will be used
11 ! # GG_PATH=<path of directory containing geogebra.jar> # If unset, path of this script will be used.
12 ! # In this case if the path of script does not contain the geogebra.jar file, /usr/share/geogebra will be used.
14 ! # JAVACMD=<Java command> # If unset, java will be used
16 # GG_XMS=<initial Java heap size> # If unset, 32m will be used.
18 # GG_XMX=<maximum Java heap size> # If unset, 512m will be used.
21 #---------------------------------------------
22 # Used environment variables:
24 # GG_XMS=<initial Java heap size> # If unset, 32m will be used.
26 # GG_XMX=<maximum Java heap size> # If unset, 512m will be used.
29 # GG_DJAVA_LIBRARY_PATH=<native library path>
31 #---------------------------------------------
32 - # If GG_SCRIPTNAME not set, use name of this script
34 - if [ -z "$GG_SCRIPTNAME" ]; then
35 - GG_SCRIPTNAME=$(basename $0)
38 - #---------------------------------------------
39 # If GG_XMS not set, set to 32m
41 if [ -z "$GG_XMS" ]; then
48 ! Usage: $GG_SCRIPTNAME [Java-options] [GeoGebra-options] [FILE]
50 GeoGebra - Dynamic mathematics software
56 ! Usage: geogebra [Java-options] [GeoGebra-options] [FILE]
58 GeoGebra - Dynamic mathematics software
64 #---------------------------------------------
65 - # If JAVACMD not set, use java
67 - if [ -z "$JAVACMD" ]; then
71 - #---------------------------------------------
72 # Check for option --help and pass Java options to Java, others to GeoGebra
80 #---------------------------------------------
81 - # If GG_PATH not set, use path of this script
83 - if [ -z "$GG_PATH" ]; then
84 - GG_PATH="${BASH_SOURCE[0]}"
85 - if [ -h "${GG_PATH}" ]; then
86 - while [ -h "${GG_PATH}" ]; do
87 - GG_PATH=`readlink "${GG_PATH}"`
91 - cd `dirname ${GG_PATH}` > /dev/null
94 - test -r "${GG_PATH}/geogebra.jar" || GG_PATH='/usr/share/geogebra'
97 - #---------------------------------------------
100 ! exec "$JAVACMD" "${JAVA_OPTS[@]}" -jar "$GG_PATH/geogebra.jar" "${GG_OPTS[@]}" "$@"
104 #---------------------------------------------
107 ! exec java "${JAVA_OPTS[@]}" -jar "/usr/share/java/geogebra/geogebra.jar" "${GG_OPTS[@]}" "$@"