The following commit has been merged in the master branch:
commit a51c29aa59067914a0bf3b17ae938844365e69eb
Author: David Paleino <da...@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

_______________________________________________
Pkg-osm-commits mailing list
Pkg-osm-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-osm-commits

Reply via email to