You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by je...@apache.org on 2002/10/11 16:34:48 UTC
cvs commit: xml-forrest/src/resources/forrest-shbat/bin forrest forrest.sh
jefft 2002/10/11 07:34:48
Added: src/resources/forrest-shbat/bin forrest
Removed: src/resources/forrest-shbat/bin forrest.sh
Log:
Rename 'forrest.sh' to 'forrest'. Now for both Windows and Unix, the command
'forrest <foo>' will work, making documentation and ml support simpler.
Revision Changes Path
1.1 xml-forrest/src/resources/forrest-shbat/bin/forrest
Index: forrest
===================================================================
#!/bin/sh
# ----- Test if ant is around ------------------------------------------------
# and bail out if it does not with a message that it is required
if [ ! `which ant` ]; then
echo "You must install Ant (http://jakarta.apache.org/ant)"
echo "and add \$ANT_HOME/bin to your PATH variable"
exit 1
fi
# set the current working dir as the PROJECT_HOME variable
PROJECT_HOME=$PWD
# use the location of this script to infer $FORREST_HOME
FORREST_HOME=`dirname $0`/..
# set the ant file to use
ANTFILE=$FORREST_HOME/forrest.build.xml
echo "Apache Forrest"
echo "Run 'forrest -projecthelp' to list options"
# call ant.
ant -buildfile $ANTFILE -Dproject.home=$PROJECT_HOME -Dforrest.home=$FORREST_HOME -emacs $@