source: other-projects/trunk/realistic-books/packages/AntInstaller/examples/buildtypes/script-overflow/installer/install.sh@ 19253

Last change on this file since 19253 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

File size: 1.5 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:../..
39
40# minimal ANT classpath requirements
41CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
42CLASSPATH=$CLASSPATH:../../../../antlib/ant-launcher.jar
43
44### add other ant jars required here
45#CLASSPATH=$CLASSPATH:./antlib/ant-weblogic.jar:./antlib/ant-javamail.jar
46
47COMMAND=$JAVA_HOME/bin/java
48
49#echo $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $1
50
51$COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $GUI .
Note: See TracBrowser for help on using the repository browser.