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, 3 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

    1: currversion=0.0
    2: mathjaxdir='/home/httpd/html/adm/MathJax'
    3: if [ -e $mathjaxdir ]
    4: then
    5:   if [ -e "$mathjaxdir/VERSION" ]
    6:   then
    7:       currversion=`cat $mathjaxdir/VERSION`
    8:   fi
    9: fi
   10: newversion=`cat VERSION`
   11: comparison=`echo "$newversion > $currversion" | bc`
   12: if [ $comparison -gt 0 ]
   13: then
   14:   if [ -e $mathjaxdir ]
   15:   then
   16:     rm -rf $mathjaxdir
   17:   fi
   18:   unzip -q -o -d $mathjaxdir mathjax-MathJax-v2.7.4.zip
   19:   mv $mathjaxdir/MathJax-2.7.4/* $mathjaxdir/.
   20:   rm -r $mathjaxdir/MathJax-2.7.4
   21:   cp VERSION $mathjaxdir/VERSION
   22:   chown -R www:www $mathjaxdir
   23:   find $mathjaxdir -type d -exec chmod u=rwx,go-rwx {} \;
   24: fi

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