jmol/datadir.diff

39 lines
942 B
Diff
Raw Normal View History

---
jmol.sh | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
Index: jmol-14.0.13/jmol.sh
===================================================================
--- jmol-14.0.13.orig/jmol.sh
+++ jmol-14.0.13/jmol.sh
@@ -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