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, 4 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.

currfontsversion=0.0
admdir='/home/httpd/html/adm'
jsmathdir="$admdir/jsMath"
if [ -e $jsmathdir]
then
    if [ -e $jsmathdir/FONTSVERSION" ]
    then
        currfontsversion=`cat $jsmathdir/FONTSVERSION`
    fi
fi
newfontsversion=`cat FONTSVERSION`
comparison=`echo "$newfontsversion > $currfontsversion" | bc`
if [ $comparison -gt 0 ]
then
  if [ -e $jsmathdir ]
  then
      rm -rf $jsmathdir
  fi
  unzip -q -o -d $admdir jsMath-fonts-1.3.zip
  cp FONTSVERSION $jsmathdir/FONTSVERSION
  chown -R www:www $jsmathdir
  find $jsmathdir -type d -exec chmod u=rwx,go-rwx {} \;
  sleep 1
fi


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