root/juggler/branches/1.0/GUI/vjcontrol.sh
| Revision 8789, 2.2 kB (checked in by patrickh, 7 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | # ************** <auto-copyright.pl BEGIN do not edit this line> ************** |
| 4 | # |
| 5 | # VR Juggler is (C) Copyright 1998, 1999, 2000, 2001, 2002 |
| 6 | # by Iowa State University |
| 7 | # |
| 8 | # Original Authors: |
| 9 | # Allen Bierbaum, Christopher Just, |
| 10 | # Patrick Hartling, Kevin Meinert, |
| 11 | # Carolina Cruz-Neira, Albert Baker |
| 12 | # |
| 13 | # This library is free software; you can redistribute it and/or |
| 14 | # modify it under the terms of the GNU Library General Public |
| 15 | # License as published by the Free Software Foundation; either |
| 16 | # version 2 of the License, or (at your option) any later version. |
| 17 | # |
| 18 | # This library is distributed in the hope that it will be useful, |
| 19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 21 | # Library General Public License for more details. |
| 22 | # |
| 23 | # You should have received a copy of the GNU Library General Public |
| 24 | # License along with this library; if not, write to the |
| 25 | # Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 26 | # Boston, MA 02111-1307, USA. |
| 27 | # |
| 28 | # ----------------------------------------------------------------- |
| 29 | # File: $RCSfile$ |
| 30 | # Date modified: $Date$ |
| 31 | # Version: $Revision$ |
| 32 | # ----------------------------------------------------------------- |
| 33 | # |
| 34 | # *************** <auto-copyright.pl END do not edit this line> *************** |
| 35 | |
| 36 | # shell script for running vjcontrol under jdk 1.2 using the java command |
| 37 | |
| 38 | # If the environment variable JDK_HOME is not set, default it to /usr/java. |
| 39 | if test "x${JDK_HOME}" = "x" ; then |
| 40 | echo "WARNING: Setting JDK_HOME environment variable to /usr/java" |
| 41 | JDK_HOME='/usr/java' ; export JDK_HOME |
| 42 | fi |
| 43 | |
| 44 | # Make sure that $JDK_HOME/bin/java exists and is executable. If it is not, |
| 45 | # exit with an error message and status 1. |
| 46 | if test ! -x "$JDK_HOME/bin/java" ; then |
| 47 | echo "ERROR: Could not find java executable $JDK_HOME/bin/java" |
| 48 | status=1 |
| 49 | # Otherwise, start up VjControl and exit with status 0. |
| 50 | else |
| 51 | if test "x$VJ_SHARE_DIR" = "x" ; then |
| 52 | VJ_SHARE_DIR=$VJ_BASE_DIR/#VJ_SHARE_DIR# |
| 53 | fi |
| 54 | |
| 55 | CLASSPATH= |
| 56 | ${JDK_HOME}/bin/java -DVJ_BASE_DIR="${VJ_BASE_DIR}" \ |
| 57 | -DVJ_SHARE_DIR="${VJ_SHARE_DIR}" \ |
| 58 | -cp ${VJ_BASE_DIR}/bin/VjControl.jar VjGUI.VjControl $* |
| 59 | status=0 |
| 60 | fi |
| 61 | |
| 62 | exit $status |
Note: See TracBrowser for help on using the browser.
