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"
|