File:  [LON-CAPA] / loncom / html / adm / jmol / commands
Revision 1.1: download - view: text, annotated - select for diffs
Fri Feb 27 18:54:07 2015 UTC (9 years, 6 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
Bug 4729
  - Support Jsmol (HTML5/javascript)
  - Update Jmol to 14.2.12_2015.02.11
  - Jmol.js formed by concatenating JSmol.min.js and Jmol2.js for backwards-compatibility
  - Sign .jar files with InCommon code-signing cert from MSU (expires Jan 5, 2018).
  - Installation mechanism now follows similar mechanism to one used for DragMath and
    MathJax

currversion=0.0
jmoldir='/home/httpd/html/adm/jmol'
if [ -e $jmoldir ]
then
  if [ -e "$jmoldir/VERSION" ]
  then
      currversion=`cat $jmoldir/VERSION`
  fi
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
  if [ -e $jmoldir ]
  then
    rm -rf $jmoldir
  fi
  unzip -q -o -d $jmoldir jmol-loncapa.zip
  mv $jmoldir/jmol-14.2.12.loncapa/* $jmoldir/.
  rm -r $jmoldir/jmol-14.2.12.loncapa
  cp VERSION $jmoldir/VERSION
  chown -R www:www $jmoldir
  find $jmoldir -type d -exec chmod u=rwx,go-rwx {} \;
fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>