source: other-projects/trunk/realistic-books/packages/AntInstaller/examples/buildtypes/script-type/installer/install-type.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# This script is NOT the same as the other install.sh scripts since
4# it handles the command line parameters differently
5
6dir=`expr match "$0" '\(.*\)install.sh'`
7# if it we did not call ./ change to the directory we called
8if [ "$dir" != "./" ] ; then
9 if [ "$dir" != "" ] ; then
10 cd "$dir" ;
11 fi
12fi
13
14
15
16# Installer requires Java
17if [ "$JAVA_HOME" = "" ] ; then
18 echo Installer requires Java available from http://java.sun.com
19 echo If you have Java installed you may just need to set the variable JAVA_HOME
20 exit 1;
21fi
22
23# Installer from command line classpath
24CLASSPATH=../../../../lib/xercesImpl.jar
25CLASSPATH=$CLASSPATH:../../../../lib/xml-apis.jar
26CLASSPATH=$CLASSPATH:../../../../lib/ant-installer.jar
27
28# JGoodies Look And Feel
29CLASSPATH=$CLASSPATH:../../../../lib/jgoodies-edited-1_2_2.jar
30# Image resources
31CLASSPATH=$CLASSPATH:../../../../src
32# Metouia (default) Look And Feel
33# CLASSPATH=$CLASSPATH:./lib/metouia.jar
34
35# minimal ANT classpath requirements
36CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
37CLASSPATH=$CLASSPATH:../../../../antlib/ant-launcher.jar
38CLASSPATH=$CLASSPATH:cp
39
40### add other ant jars required here
41#CLASSPATH=$CLASSPATH:./antlib/ant-weblogic.jar:./antlib/ant-javamail.jar
42
43COMMAND=$JAVA_HOME/bin/java
44
45GUI=swing
46if [ "$1" == "text" ] ; then
47 GUI=text;
48 shift;
49fi
50
51if [ "$1" != "" ] ; then
52 if [ "$1" != "-type" ] ; then
53 echo 'Usage ./install-type.sh [text] [-type alternative]'
54 fi
55fi
56$COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $GUI . $1 $2 $3 $4 $5 $6 $7 $8 $9
Note: See TracBrowser for help on using the repository browser.