source: release-kits/lirk3/bin/ant-installer/examples/buildtypes/script-auto/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.7 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
35#CLASSPATH=../../../../lib/ant-installer.jar
36
37# JGoodies Look And Feel
38CLASSPATH=$CLASSPATH:../../../../lib/jgoodies-edited-1_2_2.jar
39# Image resources
40CLASSPATH=$CLASSPATH:../../../../classes
41# Metouia (default) Look And Feel
42# CLASSPATH=$CLASSPATH:./lib/metouia.jar
43
44# minimal ANT classpath requirements
45CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
46CLASSPATH=$CLASSPATH:../../../../antlib/ant-launcher.jar
47
48# minimal AntInstaller requirements
49CLASSPATH=$CLASSPATH:../../../../lib/ant-installer.jar
50
51### add other ant jars required here
52CLASSPATH=$CLASSPATH:./cp
53
54COMMAND=$JAVA_HOME/bin/java
55
56echo $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $1
57
58$COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $GUI .
Note: See TracBrowser for help on using the repository browser.