Sha256: cbf254087a6ce4161653037245d97a5acd119ad3f400ed97b90589f0009a9cee

Contents?: true

Size: 495 Bytes

Versions: 5

Compression:

Stored size: 495 Bytes

Contents

#!/bin/sh

# Collect -D & -m options as java arguments
command=java
while [ `echo $1 | egrep '^-D|^-m' | wc -l` != 0 ]; do
	command="$command $1"
	shift
done

if [ -f ./Jmol.jar ] ; then
  jarpath=./Jmol.jar
elif [ -f ./build/Jmol.jar ] ; then
  jarpath=./build/Jmol.jar
elif [ -f $JMOL_HOME/Jmol.jar ] ; then
  jarpath=$JMOL_HOME/Jmol.jar
elif [ -f /usr/share/jmol/Jmol.jar ] ; then
  jarpath=/usr/share/jmol/Jmol.jar
else
  echo Jmol.jar not found
  exit
fi
$command -Xmx512m -jar $jarpath $@

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbbt-views-2.0.2 share/views/public/plugins/jmol/jmol
rbbt-views-2.0.1 share/views/public/plugins/jmol/jmol
rbbt-views-2.0.0 share/views/public/plugins/jmol/jmol
rbbt-views-1.0.1 share/views/public/plugins/jmol/jmol
rbbt-views-1.0.0 share/views/public/plugins/jmol/jmol