forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@apache.org
Subject cvs commit: xml-forrest/src/resources/forrest-shbat/bin forrest
Date Fri, 03 Jan 2003 08:34:44 GMT
stevenn     2003/01/03 00:34:44

  Modified:    src/resources/forrest-shbat/bin forrest
  Log:
  Updated cygwin check in forrest(.sh) thanks to levylambert@tiscali-dsl.de
  
  Revision  Changes    Path
  1.9       +14 -3     xml-forrest/src/resources/forrest-shbat/bin/forrest
  
  Index: forrest
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/forrest-shbat/bin/forrest,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- forrest	28 Dec 2002 11:07:19 -0000	1.8
  +++ forrest	3 Jan 2003 08:34:44 -0000	1.9
  @@ -2,7 +2,18 @@
   
   # set the current working dir as the PROJECT_HOME variable 
   
  -if [ "$TERM" = "cygwin" ] ; then
  +cygwin=false;
  +darwin=false;
  +case "`uname`" in
  +  CYGWIN*) cygwin=true ;;
  +  Darwin*) darwin=true
  +           if [ -z "$JAVA_HOME" ] ; then
  +             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home   
  +           fi
  +           ;;
  +esac
  +
  +if [ "$cygwin" = "true" ] ; then
     PROJECT_HOME=`cygpath -w "$PWD"`
   else
     PROJECT_HOME=$PWD
  @@ -17,7 +28,7 @@
   
   # ----- Set Up The Runtime Classpath ------------------------------------------
   
  -if [ "$TERM" = "cygwin" ] ; then
  +if [ "$cygwin" = "true" ] ; then
     S=';'
     FORREST_DOT_HOME=`cygpath -w "$FORREST_HOME"`
   else
  @@ -33,7 +44,7 @@
   unset CLASSPATH
   
   for i in $FORREST_HOME/lib/endorsed/*.jar; do
  -  if [ "$TERM" = "cygwin" ] ; then
  +  if [ "$cygwin" = "true" ] ; then
       LIB=`cygpath -w $i`
     else
       LIB=$i
  
  
  

Mime
View raw message