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
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.