Annotation of loncom/html/adm/jsMath/commands, revision 1.6

1.5       raeburn     1: currfontsversion=0.0
                      2: admdir='/home/httpd/html/adm'
                      3: jsmathdir="$admdir/jsMath"
1.6     ! raeburn     4: if [ -e $jsmathdir ]
1.5       raeburn     5: then
1.6     ! raeburn     6:     if [ -e "$jsmathdir/FONTSVERSION" ]
1.5       raeburn     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
1.6     ! raeburn    17:       if [ -e "$jsmathdir/fonts" ] 
        !            18:       then
        !            19:           rm -rf $jsmathdir/fonts
        !            20:       fi
1.5       raeburn    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>