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