File:  [LON-CAPA] / loncom / html / adm / jsMath / commands
Revision 1.6: download - view: text, annotated - select for diffs
Fri Jan 11 15:27:23 2013 UTC (11 years, 10 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_X, version_2_11_5_msu, version_2_11_5, 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, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, HEAD
- Fix typos in rev. 1.5
- Only remove jsMath/fonts directory if newer fonts available.

    1: currfontsversion=0.0
    2: admdir='/home/httpd/html/adm'
    3: jsmathdir="$admdir/jsMath"
    4: if [ -e $jsmathdir ]
    5: then
    6:     if [ -e "$jsmathdir/FONTSVERSION" ]
    7:     then
    8:         currfontsversion=`cat $jsmathdir/FONTSVERSION`
    9:     fi
   10: fi
   11: newfontsversion=`cat FONTSVERSION`
   12: comparison=`echo "$newfontsversion > $currfontsversion" | bc`
   13: if [ $comparison -gt 0 ]
   14: then
   15:   if [ -e $jsmathdir ]
   16:   then
   17:       if [ -e "$jsmathdir/fonts" ] 
   18:       then
   19:           rm -rf $jsmathdir/fonts
   20:       fi
   21:   fi
   22:   unzip -q -o -d $admdir jsMath-fonts-1.3.zip
   23:   cp FONTSVERSION $jsmathdir/FONTSVERSION
   24:   chown -R www:www $jsmathdir
   25:   find $jsmathdir -type d -exec chmod u=rwx,go-rwx {} \;
   26:   sleep 1
   27: fi
   28: 

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