Bug 44115

Summary: Make lenya.sh callable from any directory
Product: Lenya Reporter: solprovider <solprovider>
Component: MiscellaneousAssignee: Lenya Developers <dev>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: Trunk   
Target Milestone: 2.0.1   
Hardware: All   
OS: other   

Description solprovider 2007-12-20 11:49:53 UTC
This was fixed for Lenya 1.2.6 and 1.3 after discussion on the Dev ML and
http://issues.apache.org/bugzilla/show_bug.cgi?id=43748

Needs to be fixed for 2.0

CURRENT CODE (Trunk on 20071220):
  if [ "$LENYA_HOME" = "" ] ; then
    LENYA_HOME='.'
    # TODO: Make it startable from any directory
    #LENYA_HOME=`dirname $0`
    #echo "LENYA_HOME: $LENYA_HOME"
  fi

REPLACE WITH:
cd `dirname $0`
LENYA_HOME=`pwd -P`