root/juggler/branches/2.2/modules/tweek/java/tweek.sh.in

Revision 19729, 2.6 kB (checked in by patrick, 2 years ago)

Copyright update.

  • 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-2007 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 # *************** <auto-copyright.pl END do not edit this line> ***************
28
29 # Shell script for running Tweek under jdk 1.2 using the 'java' command.
30
31 if test "x$TWEEK_BASE_DIR" = "x" ; then
32    prefix='@prefix@'
33    echo "NOTE: Setting TWEEK_BASE_DIR to $prefix"
34    TWEEK_BASE_DIR="$prefix"
35    export TWEEK_BASE_DIR
36 fi
37
38 # We have to have $TWEEK_BASE_DIR set.
39 if test ! -d "$TWEEK_BASE_DIR" ; then
40     echo "WARNING: TWEEK_BASE_DIR directory ($TWEEK_BASE_DIR) does not exist!"
41    
42     # If $TWEEK_BASE_DIR is not set, fall back on the value of $VJ_BASE_DIR.  This
43     # is a reasonable default.
44     if test "x$VJ_BASE_DIR" = "x" ; then
45          echo "NOTE: Setting TWEEK_BASE_DIR to $VJ_BASE_DIR"
46          TWEEK_BASE_DIR="$VJ_BASE_DIR"
47     fi
48 else
49    # Sanity check #1 on $TWEEK_BASE_DIR setting.
50    if test ! -d "$TWEEK_BASE_DIR/@TWEEK_DATA_DIR@/beans" ; then
51        echo "Warning: Directory $TWEEK_BASE_DIR/@TWEEK_DATA_DIR@/beans does not exist!"
52        echo "         Trying to fall back to VJ_BASE_DIR!"
53        
54        # If $TWEEK_BASE_DIR is not set, fall back on the value of $VJ_BASE_DIR.  This
55        # is a reasonable default.
56        if test "x$VJ_BASE_DIR" != "x" ; then
57           echo "NOTE: Setting TWEEK_BASE_DIR to $VJ_BASE_DIR"
58           TWEEK_BASE_DIR="$VJ_BASE_DIR"
59        fi
60    fi
61 fi
62
63 # Final sanity check the $TWEEK_BASE_DIR setting.
64 if test ! -d "$TWEEK_BASE_DIR/@TWEEK_DATA_DIR@/beans" ; then
65     echo "FATAL ERROR: Directory $TWEEK_BASE_DIR/@TWEEK_DATA_DIR@/beans does not exist!"
66     exit 1
67 fi
68
69
70 EXTRA_JDK_ARGS="-Dsun.java2d.opengl=true"
71
72 . $TWEEK_BASE_DIR/bin/tweek-base.sh
73
74 exit $status
Note: See TracBrowser for help on using the browser.