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

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

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