Annotation of loncom/html/adm/MathJax/commands, revision 1.3

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

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