Annotation of loncom/html/adm/jsMath/commands, revision 1.5
1.5 ! raeburn 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: rm -rf $jsmathdir
! 18: fi
! 19: unzip -q -o -d $admdir jsMath-fonts-1.3.zip
! 20: cp FONTSVERSION $jsmathdir/FONTSVERSION
! 21: chown -R www:www $jsmathdir
! 22: find $jsmathdir -type d -exec chmod u=rwx,go-rwx {} \;
! 23: sleep 1
! 24: fi
! 25:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>