1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # This script is NOT the same as the other install.sh scripts since
|
---|
4 | # it handles the command line parameters differently
|
---|
5 |
|
---|
6 | dir=`expr match "$0" '\(.*\)install.sh'`
|
---|
7 | # if it we did not call ./ change to the directory we called
|
---|
8 | if [ "$dir" != "./" ] ; then
|
---|
9 | if [ "$dir" != "" ] ; then
|
---|
10 | cd "$dir" ;
|
---|
11 | fi
|
---|
12 | fi
|
---|
13 |
|
---|
14 |
|
---|
15 |
|
---|
16 | # Installer requires Java
|
---|
17 | if [ "$JAVA_HOME" = "" ] ; then
|
---|
18 | echo Installer requires Java available from http://java.sun.com
|
---|
19 | echo If you have Java installed you may just need to set the variable JAVA_HOME
|
---|
20 | exit 1;
|
---|
21 | fi
|
---|
22 |
|
---|
23 | # Installer from command line classpath
|
---|
24 | CLASSPATH=../../../../lib/xercesImpl.jar
|
---|
25 | CLASSPATH=$CLASSPATH:../../../../lib/xml-apis.jar
|
---|
26 | CLASSPATH=$CLASSPATH:../../../../lib/ant-installer.jar
|
---|
27 |
|
---|
28 | # JGoodies Look And Feel
|
---|
29 | CLASSPATH=$CLASSPATH:../../../../lib/jgoodies-edited-1_2_2.jar
|
---|
30 | # Image resources
|
---|
31 | CLASSPATH=$CLASSPATH:../../../../src
|
---|
32 | # Metouia (default) Look And Feel
|
---|
33 | # CLASSPATH=$CLASSPATH:./lib/metouia.jar
|
---|
34 |
|
---|
35 | # minimal ANT classpath requirements
|
---|
36 | CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
|
---|
37 | CLASSPATH=$CLASSPATH:../../../../antlib/ant-launcher.jar
|
---|
38 | CLASSPATH=$CLASSPATH:cp
|
---|
39 |
|
---|
40 | ### add other ant jars required here
|
---|
41 | #CLASSPATH=$CLASSPATH:./antlib/ant-weblogic.jar:./antlib/ant-javamail.jar
|
---|
42 |
|
---|
43 | COMMAND=$JAVA_HOME/bin/java
|
---|
44 |
|
---|
45 | GUI=swing
|
---|
46 | if [ "$1" == "text" ] ; then
|
---|
47 | GUI=text;
|
---|
48 | shift;
|
---|
49 | fi
|
---|
50 |
|
---|
51 | if [ "$1" != "" ] ; then
|
---|
52 | if [ "$1" != "-type" ] ; then
|
---|
53 | echo 'Usage ./install-type.sh [text] [-type alternative]'
|
---|
54 | fi
|
---|
55 | fi
|
---|
56 | $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $GUI . $1 $2 $3 $4 $5 $6 $7 $8 $9
|
---|