source: release-kits/lirk3/bin/ant-installer/demo/checkConfig.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.1 KB
Line 
1#!/bin/sh
2
3# This script check the configuration in the scripts directory
4
5# find the command called's root e.g. ./build/
6dir=`expr match "$0" '\(.*\)checkConfig.sh'`
7# if it we did not call ./ change to the directory we called
8if [ "$dir" != "./" ] ; then
9 if [ "$dir" != "" ] ; then
10 echo changing to $dir
11 cd "$dir" ;
12 fi
13fi
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=./installlib/xercesImpl.jar
25CLASSPATH=$CLASSPATH:./installlib/xml-apis.jar
26CLASSPATH=$CLASSPATH:./installlib/ant-installer.jar
27CLASSPATH=$CLASSPATH:./installlib/ant-installer-ext.jar
28CLASSPATH=$CLASSPATH:./antlib/ant.jar
29CLASSPATH=$CLASSPATH:./antlib/ant-launcher.jar
30
31COMMAND=$JAVA_HOME/bin/java
32
33#echo $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $1
34
35$COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ConfigurationLoader .
Note: See TracBrowser for help on using the repository browser.