Ticket #11496: trac_11496_add_jmol_script.patch

File trac_11496_add_jmol_script.patch, 920 bytes (added by gutow, 11 years ago)

jmol script into hg repository to go with flask changes

  • new file jmol

    # HG changeset patch
    # User Jonathan Gutow <gutow@uwosh.edu>
    # Date 1308192089 25200
    # Node ID 02f974f0b0ee105d9706a95cbd8ed1de0e74900c
    # Parent  d105c4881ddaeaaaa369dc0f9bba009defbf6e29
    trac 11496 add jmol script in local/bin to hg repository
    
    diff -r d105c4881dda -r 02f974f0b0ee jmol
    - +  
     1#!/bin/sh
     2#JMOL_HOME=`dirname "$0"`
     3JMOL_HOME="$SAGE_LOCAL/share/jmol"
     4
     5# Collect -D & -m options as java arguments
     6command=java
     7while [ `echo $1 | egrep '^-D|^-m' | wc -l` != 0 ]; do
     8        command="$command $1"
     9        shift
     10done
     11
     12if [ -f ./Jmol.jar ] ; then
     13  jarpath=./Jmol.jar
     14elif [ -f $JMOL_HOME/Jmol.jar ] ; then
     15  jarpath=$JMOL_HOME/Jmol.jar
     16elif [ -f /usr/share/jmol/Jmol.jar ] ; then
     17  jarpath=/usr/share/jmol/Jmol.jar
     18else
     19  echo Jmol.jar not found
     20  exit
     21fi
     22$command -Xmx512m -jar $jarpath $@