File:  [LON-CAPA] / loncom / html / adm / ckeditor / commands
Revision 1.6: download - view: text, annotated - select for diffs
Thu Jul 18 00:40:07 2013 UTC (11 years, 1 month ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, HEAD
- Include ckeditor version information.
  - Only install when running ./UPDATE if ckeditor is absent, or if a newer
    version is included in LON-CAPA tarball.
  - Correction to target location for ckeditor directory in loncapafiles.lpml
  - Remove unused /home/httpd/htmladm/ckeditor directory

    1: path=`pwd`
    2: htmldir='/home/httpd/html'
    3: currversion=3.62
    4: ckeditordir="$htmldir/ckeditor"
    5: if [ -e $ckeditordir ]
    6: then
    7:   if [ -e "$ckeditordir/VERSION" ]
    8:   then
    9:       currversion=`cat $ckeditordir/VERSION`
   10:   fi
   11: fi
   12: newversion=`cat VERSION`
   13: comparison=`echo "$newversion > $currversion" | bc`
   14: if [ $comparison -gt 0 ]
   15: then
   16:   if [ -e $ckeditordir ]
   17:   then
   18:     rm -rf $ckeditordir
   19:   fi
   20:   cd $htmldir
   21:   echo $path/ckeditor_3.6.6.1.tar.gz
   22:   tar -zxf $path/ckeditor_3.6.6.1.tar.gz
   23:   cp $path/VERSION ckeditor/VERSION
   24:   cp $path/loncapaconfig.js ckeditor/loncapaconfig.js
   25:   chown -R www:www ckeditor
   26: fi
   27: if [ -e "$htmldir/fckeditor" ]
   28: then
   29:     rm -rf $htmldir/fckeditor
   30: fi
   31: if [ -e "$htmldir/htmlarea" ]
   32: then
   33:     rm -rf $htmldir/htmlarea
   34: fi
   35: if  [ -e "$htmldir/adm/ckeditor" ]
   36: then
   37:     rm -rf $htmldir/adm/ckeditor
   38: fi

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