source: other-projects/trunk/realistic-books/packages/AntInstaller/examples/buildtypes/script-post-display/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.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
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:../../../../classes
43
44# minimal ANT classpath requirements
45CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
46CLASSPATH=$CLASSPATH:../../../../antlib/ant-launcher.jar
47
48CLASSPATH=$CLASSPATH:cp
49### add other ant jars required here
50#CLASSPATH=$CLASSPATH:./antlib/ant-weblogic.jar:./antlib/ant-javamail.jar
51
52COMMAND=$JAVA_HOME/bin/java
53
54#echo $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $1
55
56$COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $GUI .
Note: See TracBrowser for help on using the repository browser.