Diff for /loncom/html/adm/ckeditor/commands between versions 1.1 and 1.6

version 1.1, 2009/12/22 03:32:13 version 1.6, 2013/07/18 00:40:07
Line 1 Line 1
 path=`pwd`  path=`pwd`
 cd $1  htmldir='/home/httpd/html'
 echo $path/ckeditor_3.0.1.tar.gz  currversion=3.62
 tar xzf $path/ckeditor_3.0.1.tar.gz  ckeditordir="$htmldir/ckeditor"
 cp $path/loncapaconfig.js ckeditor/loncapaconfig.js  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

Removed from v.1.1  
changed lines
  Added in v.1.6


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