root/juggler/branches/2.2/modules/vrjuggler/vrjconfig/vrjconfig.sh.in

Revision 20842, 2.8 kB (checked in by patrick, 1 year ago)

OpenGL acceleration of Swing components works fine for me on all platforms,
but other people run into problems with it. Oh well.

  • 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.x using the 'java' command.
30
31 if test "x$VJ_BASE_DIR" = "x" ; then
32    prefix='@prefix@'
33    echo "NOTE: Setting VJ_BASE_DIR to $prefix"
34    VJ_BASE_DIR="$prefix"
35    export VJ_BASE_DIR
36 fi
37
38 # We have to have $VJ_BASE_DIR set.
39 if test ! -d "$VJ_BASE_DIR" ; then
40     echo "FATAL ERROR: VJ_BASE_DIR directory ($VJ_BASE_DIR) does not exist!"
41     exit 1
42 fi
43
44 # Sanity check the $VJ_BASE_DIR setting.
45 if test ! -d "$VJ_BASE_DIR/@VJ_DATA_DIR@/beans" ; then
46     echo "FATAL ERROR: Directory $VJ_BASE_DIR/@VJ_DATA_DIR@/beans does not exist!"
47     exit 1
48 fi
49
50 # If $TWEEK_BASE_DIR is not set, fall back on the value of $VJ_BASE_DIR.  This
51 # is a reasonable default.
52 if test "x$TWEEK_BASE_DIR" = "x" ; then
53     echo "NOTE: Setting TWEEK_BASE_DIR to $VJ_BASE_DIR"
54     TWEEK_BASE_DIR="$VJ_BASE_DIR"
55     export TWEEK_BASE_DIR
56 fi
57
58 # If $JCCL_BASE_DIR is not set, fall back on the value of $VJ_BASE_DIR.  This
59 # is a reasonable default.
60 if test "x$JCCL_BASE_DIR" = "x" ; then
61     echo "NOTE: Setting JCCL_BASE_DIR to $VJ_BASE_DIR"
62     JCCL_BASE_DIR="$VJ_BASE_DIR"
63     export JCCL_BASE_DIR
64 fi
65
66 # If $JCCL_DEFINITION_PATH is set, add that property definition argument.
67 if test "x$JCCL_DEFINITION_PATH" != "x" ; then
68    jccl_def_arg="-DJCCL_DEFINITION_PATH=${JCCL_DEFINITION_PATH}"
69    export JCCL_DEFINITION_PATH
70 fi
71
72 EXTRA_JDK_ARGS="-DTWEEK_DATA_DIR=@TWEEK_DATA_DIR@ -DJCCL_DATA_DIR=@JCCL_DATA_DIR@ -DVJ_DATA_DIR=@VJ_DATA_DIR@ -DJCCL_BASE_DIR=${JCCL_BASE_DIR} -DTWEEK_BASE_DIR=${TWEEK_BASE_DIR} -DVJ_BASE_DIR=${VJ_BASE_DIR} $jccl_def_arg"
73
74 APP_NAME='VRJConfig'
75
76 . $TWEEK_BASE_DIR/bin/tweek-base.sh \
77    --beanpath="$JCCL_BASE_DIR/@JCCL_DATA_DIR@/beans" \
78    --beanpath="$VJ_BASE_DIR/@VJ_DATA_DIR@/beans" \
79    --defaultbean="Configuration Editor" "$@"
80
81 exit $status
Note: See TracBrowser for help on using the browser.