You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by so...@apache.org on 2007/12/12 22:20:31 UTC
svn commit: r603746 - /lenya/branches/BRANCH_1_2_X/lenya.sh
Author: solprovider
Date: Wed Dec 12 13:20:30 2007
New Revision: 603746
URL: http://svn.apache.org/viewvc?rev=603746&view=rev
Log:
LENYA_HOME set using dirname and pwd.
Modified:
lenya/branches/BRANCH_1_2_X/lenya.sh
Modified: lenya/branches/BRANCH_1_2_X/lenya.sh
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/lenya.sh?rev=603746&r1=603745&r2=603746&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/lenya.sh (original)
+++ lenya/branches/BRANCH_1_2_X/lenya.sh Wed Dec 12 13:20:30 2007
@@ -25,7 +25,7 @@
JETTY_PORT="8888"
# LENYA_HOME
-# The root of the Lenya distribution
+# The root of the Lenya distribution automatically set to directory containing this file.
#
# LENYA_WEBAPP_HOME
# The root of the Lenya web application
@@ -91,8 +91,7 @@
fi
# Set Lenya home to directory containing this script
-LENYA_HOME=${0%/*}
-cd $LENYA_HOME
+cd `dirname $0`
LENYA_HOME=`pwd -P`
if [ "$LENYA_WEBAPP_HOME" = "" ] ; then
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org