source: release-kits/lirk3/bin/ant-installer/examples/buildtypes/script-graphical-pp/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.8 KB
Line 
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
12GUI=$1
13if [ "$GUI" = "" ] ; then
14 GUI=default;
15fi
16
17dir=`expr match "$0" '\(.*\)install.sh'`
18# if it we did not call ./ change to the directory we called
19if [ "$dir" != "./" ] ; then
20 if [ "$dir" != "" ] ; then
21 cd "$dir" ;
22 fi
23fi
24
25
26
27# Installer requires Java
28if [ "$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;
32fi
33
34# Installer from command line classpath
35CLASSPATH=../../../../lib/xercesImpl.jar
36CLASSPATH=$CLASSPATH:../../../../lib/xml-apis.jar
37CLASSPATH=$CLASSPATH:../../../../lib/ant-installer.jar
38
39# JGoodies Look And Feel
40CLASSPATH=$CLASSPATH:../../../../lib/jgoodies-edited-1_2_2.jar
41# Image resources
42CLASSPATH=$CLASSPATH:../../../../src
43# Metouia (default) Look And Feel
44# CLASSPATH=$CLASSPATH:./lib/metouia.jar
45
46# minimal ANT classpath requirements
47CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
48CLASSPATH=$CLASSPATH:../../../../antlib/ant-launcher.jar
49
50### add other ant jars required here
51#CLASSPATH=$CLASSPATH:./antlib/ant-weblogic.jar:./antlib/ant-javamail.jar
52
53COMMAND=$JAVA_HOME/bin/java
54
55#echo $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $1
56
57$COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $GUI .
Note: See TracBrowser for help on using the repository browser.