Diff for /loncom/html/adm/ckeditor/commands between versions 1.4 and 1.9

version 1.4, 2013/01/10 05:36:22 version 1.9, 2016/01/06 21:56:16
Line 1 Line 1
 path=`pwd`  path=`pwd`
 htmldir='/home/httpd/html'  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_4.4.7.tar.gz
     tar -zxf $path/ckeditor_4.4.7.tar.gz
     cp -r $path/plugins/lcm ckeditor/plugins/
     cp -r $path/plugins/chem ckeditor/plugins/
     cp $path/VERSION ckeditor/VERSION
     cp $path/loncapaconfig.js ckeditor/loncapaconfig.js
     chown -R www:www ckeditor
   fi
 if [ -e "$htmldir/fckeditor" ]  if [ -e "$htmldir/fckeditor" ]
 then  then
     rm -rf $htmldir/fckeditor      rm -rf $htmldir/fckeditor
Line 8  if [ -e "$htmldir/htmlarea" ] Line 34  if [ -e "$htmldir/htmlarea" ]
 then  then
     rm -rf $htmldir/htmlarea      rm -rf $htmldir/htmlarea
 fi  fi
 cd $htmldir  if  [ -e "$htmldir/adm/ckeditor" ]
 echo $path/ckeditor_3.6.2.tar.gz  then
 tar -zxf $path/ckeditor_3.6.2.tar.gz      rm -rf $htmldir/adm/ckeditor
 cp $path/loncapaconfig.js ckeditor/loncapaconfig.js  fi

Removed from v.1.4  
changed lines
  Added in v.1.9


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