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