forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject svn commit: rev 31002 - forrest/trunk/src/core/bin
Date Fri, 30 Jul 2004 20:37:59 GMT
Author: brondsem
Date: Fri Jul 30 13:37:58 2004
New Revision: 31002

Modified:
   forrest/trunk/src/core/bin/forrest
Log:
allow forrest to be executed via a symlink

Modified: forrest/trunk/src/core/bin/forrest
==============================================================================
--- forrest/trunk/src/core/bin/forrest	(original)
+++ forrest/trunk/src/core/bin/forrest	Fri Jul 30 13:37:58 2004
@@ -35,7 +35,9 @@
 fi
 
 # use the location of this script to infer $FORREST_HOME
-FORREST_HOME=`dirname "$0"`/..
+realpath_listing=$(ls -l $0)
+realpath="${realpath_listing#*-> }"
+FORREST_HOME=`dirname "$realpath"`/..
 
 # Save old ANT_HOME
 OLD_ANT_HOME="$ANT_HOME"

Mime
View raw message