[Pkg-osm-commits] [SCM] osmosis branch, master, updated. debian/0.31.2-2-68-ga51c29a

David Paleino dapal at debian.org
Wed Sep 28 15:59:50 UTC 2011


The following commit has been merged in the master branch:
commit a51c29aa59067914a0bf3b17ae938844365e69eb
Author: David Paleino <dapal at debian.org>
Date:   Wed Sep 28 17:59:44 2011 +0200

    revert direct change to upstream source

diff --git a/package/bin/osmosis b/package/bin/osmosis
index d377089..2ef3ef2 100755
--- a/package/bin/osmosis
+++ b/package/bin/osmosis
@@ -18,6 +18,25 @@ if [ -z "$JAVACMD" ] ; then
   JAVACMD=java
 fi
 
+## resolve links - $0 may be a link to application
+PRG="$0"
+
+# if started without absolute path, but from PATH environment
+if [ ! -s "$PRG" ] ; then
+    PRG=`which $PRG`
+fi
+
+# need this for relative symlinks
+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
+
 if [ "x$1x" = "xx" ] || echo "$@" | grep -q -e '--help' ; then
 cat <<EOF
 osmosis

-- 
Osmosis, an OSM data processor



More information about the Pkg-osm-commits mailing list