File jmol-hardlink.patch of Package jmol

--- /usr/bin/jmol	2013-06-27 11:32:04.000000000 +0200
+++ jmol.sh	2013-07-29 20:47:53.077847329 +0200
@@ -9,28 +9,8 @@ done
 
 # Determine installation location
 if [ "$JMOL_HOME" = "" ]; then
-	binDir=${0%/*}
-	if [ "$binDir" = "$0" ]; then
-		# Ran from local directory
-		binDir=$PWD
-	fi
-	# Resolve symlinks.
-	program="$0"
-	while [ -L "$program" ]; do
-		ls=`/bin/ls -ld "$program"`
-		link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
-		if /usr/bin/expr "$link" : '.*/.*' > /dev/null; then
-		program="$link"
-		else
-		program="`/usr/bin/dirname $program`/$link"
-		fi
-	done
-	binDir=`dirname $program`
+	JMOL_HOME="@pkgdatadir@"
 fi
-
-JMOL_HOME=${JMOL_HOME:-$binDir}
-libDir=${JMOL_HOME}/jars
-
 if [ ! -e ${JMOL_HOME}/Jmol.jar ]; then
 	echo "Jmol could not find its installed files."
 	exit
openSUSE Build Service is sponsored by