geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r231124 - /geronimo/trunk/modules/assembly/src/scripts/startup.sh
Date Tue, 09 Aug 2005 22:17:49 GMT
Author: jgenender
Date: Tue Aug  9 15:17:43 2005
New Revision: 231124

URL: http://svn.apache.org/viewcvs?rev=231124&view=rev
Log:
server.sh could only be run from the bin directory.  This change made it executable from anywhere.

Modified:
    geronimo/trunk/modules/assembly/src/scripts/startup.sh

Modified: geronimo/trunk/modules/assembly/src/scripts/startup.sh
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/assembly/src/scripts/startup.sh?rev=231124&r1=231123&r2=231124&view=diff
==============================================================================
--- geronimo/trunk/modules/assembly/src/scripts/startup.sh (original)
+++ geronimo/trunk/modules/assembly/src/scripts/startup.sh Tue Aug  9 15:17:43 2005
@@ -33,6 +33,20 @@
 
 JAVA=$JAVA_HOME/bin/java
 
+PRG="$0"
+while [ -h "$PRG" ] ; do
+    ls=`ls -ld "$PRG"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '.*/.*' > /dev/null; then
+        PRG="$link"
+    else
+        PRG=`dirname "$PRG"`/"$link"
+    fi
+done
+
+PRGDIR=`dirname "$PRG"`
+SERVER_JAR=$PRGDIR/server.jar
+
 if [ ! -f "$SERVER_JAR" ]; then 
     echo "Unable to locate the $SERVER_JAR jar"
     exit 1



Mime
View raw message