File:  [LON-CAPA] / loncom / html / adm / MathJax / commands
Revision 1.9: download - view: text, annotated - select for diffs
Sat Apr 21 15:18:12 2018 UTC (6 years, 2 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, HEAD
- MathJax 2.7.4

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

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