1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # This istall script runs the installer in the development directory
|
---|
4 | # To create you own installers it is best to copy the structure
|
---|
5 | # and scripts in the ./demo directoy
|
---|
6 |
|
---|
7 | # The default case runs the installer in an X session if it can
|
---|
8 | # falling back to text if the Graphics environment is not available
|
---|
9 | # This can be changed by uncommenting the if statement and the default
|
---|
10 | # can be changed by replacing "text" with "swing" below
|
---|
11 | # or passing the required option on the command line
|
---|
12 | GUI=$1
|
---|
13 | if [ "$GUI" = "" ] ; then
|
---|
14 | GUI=default;
|
---|
15 | fi
|
---|
16 |
|
---|
17 | dir=`expr match "$0" '\(.*\)install.sh'`
|
---|
18 | # if it we did not call ./ change to the directory we called
|
---|
19 | if [ "$dir" != "./" ] ; then
|
---|
20 | if [ "$dir" != "" ] ; then
|
---|
21 | cd "$dir" ;
|
---|
22 | fi
|
---|
23 | fi
|
---|
24 |
|
---|
25 |
|
---|
26 |
|
---|
27 | # Installer requires Java
|
---|
28 | if [ "$JAVA_HOME" = "" ] ; then
|
---|
29 | echo Installer requires Java available from http://java.sun.com
|
---|
30 | echo If you have Java installed you may just need to set the variable JAVA_HOME
|
---|
31 | exit 1;
|
---|
32 | fi
|
---|
33 |
|
---|
34 | # Installer from command line classpath
|
---|
35 | CLASSPATH=../../../../lib/xercesImpl.jar
|
---|
36 | CLASSPATH=$CLASSPATH:../../../../lib/xml-apis.jar
|
---|
37 | CLASSPATH=$CLASSPATH:../../../../lib/ant-installer.jar
|
---|
38 |
|
---|
39 | # JGoodies Look And Feel
|
---|
40 | CLASSPATH=$CLASSPATH:../../../../lib/jgoodies-edited-1_2_2.jar
|
---|
41 | # Image resources
|
---|
42 | CLASSPATH=$CLASSPATH:../../
|
---|
43 |
|
---|
44 | # minimal ANT classpath requirements
|
---|
45 | CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
|
---|
46 | CLASSPATH=$CLASSPATH:../../../../antlib/ant-launcher.jar
|
---|
47 |
|
---|
48 | ### add other ant jars required here
|
---|
49 | #CLASSPATH=$CLASSPATH:./antlib/ant-weblogic.jar:./antlib/ant-javamail.jar
|
---|
50 |
|
---|
51 | COMMAND=$JAVA_HOME/bin/java
|
---|
52 |
|
---|
53 | #echo $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $1
|
---|
54 |
|
---|
55 | $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $GUI .
|
---|