root/juggler/tags/1.0.5/GUI/vjcontrol.sh

Revision 7539, 2.2 kB (checked in by anonymous, 7 years ago)

This commit was manufactured by cvs2svn to create tag
'RELENG_1_0_5_RELEASE'.

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