File:  [LON-CAPA] / loncom / html / adm / MathJax / commands
Revision 1.2: download - view: text, annotated - select for diffs
Thu May 24 01:35:55 2012 UTC (12 years, 9 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
Include MathJax version information.
  - Only install when running ./UPDATE if MathJax is absent, or if a newer
    version is included in LON-CAPA tarball.

currversion=0.0
if [ -e "$1/VERSION" ]
then
  currversion=`cat $1/VERSION`
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
  rm -rf $1/
  unzip -q -o -d $1 mathjax-MathJax-v2.0-20-g07669ac.zip
  mv $1/mathjax-MathJax-07669ac/* $1/.
  rm -r $1/mathjax-MathJax-07669ac
  cp VERSION $1/VERSION
  chown -R www:www $1
  find $1 -type d -exec chmod u=rwx,go-rwx {} \;
fi

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