source: release-kits/lirk3/bin/ant-installer/examples/buildtypes/script/installer/install.sh@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

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