forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/forrest-shbat/bin forrest forrest.sh
Date Fri, 11 Oct 2002 14:34:48 GMT
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
$@ 
  
  
  

Mime
View raw message