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 (10 years, 10 months 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

path=`pwd`
htmldir='/home/httpd/html'
currversion=3.62
ckeditordir="$htmldir/ckeditor"
if [ -e $ckeditordir ]
then
  if [ -e "$ckeditordir/VERSION" ]
  then
      currversion=`cat $ckeditordir/VERSION`
  fi
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
  if [ -e $ckeditordir ]
  then
    rm -rf $ckeditordir
  fi
  cd $htmldir
  echo $path/ckeditor_3.6.6.1.tar.gz
  tar -zxf $path/ckeditor_3.6.6.1.tar.gz
  cp $path/VERSION ckeditor/VERSION
  cp $path/loncapaconfig.js ckeditor/loncapaconfig.js
  chown -R www:www ckeditor
fi
if [ -e "$htmldir/fckeditor" ]
then
    rm -rf $htmldir/fckeditor
fi
if [ -e "$htmldir/htmlarea" ]
then
    rm -rf $htmldir/htmlarea
fi
if  [ -e "$htmldir/adm/ckeditor" ]
then
    rm -rf $htmldir/adm/ckeditor
fi

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