File:  [LON-CAPA] / loncom / html / adm / jsMath / commands
Revision 1.5: download - view: text, annotated - select for diffs
Thu Jan 10 05:35:38 2013 UTC (11 years, 6 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Improve robustness by not relying on argument in script call in loncaapfiles.lpml - For rich text editor (ckeditor) do some clean up of old editors -- fckeditor
  and htmlarea, if installing on LON-CAPA server with long history
- Add sleep to avoid error occasionally seen when running ./UPDATE
- Eliminate warnings about missing directories
- Include FONTSVERSION for jsMath Fonts and only unzip fonts .zip file if newer
  than FONTSVERSION.

    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>