Diff for /loncom/html/adm/ckeditor/commands between versions 1.7 and 1.12

version 1.7, 2015/03/31 13:45:39 version 1.12, 2024/06/14 19:12:51
Line 1 Line 1
 path=`pwd`  path=`pwd`
 htmldir='/home/httpd/html'  htmldir='/home/httpd/html'
 currversion=4.47  currversion=0.0
 ckeditordir="$htmldir/ckeditor"  ckeditordir="$htmldir/ckeditor"
 if [ -e $ckeditordir ]  if [ -e $ckeditordir ]
 then  then
Line 10  then Line 10  then
   fi    fi
 fi  fi
 newversion=`cat VERSION`  newversion=`cat VERSION`
 comparison=`echo "$newversion > $currversion" | bc`  arrnewversion=(${newversion//./ })
   arrcurrversion=(${currversion//./ })
   comparison=`echo "${arrnewversion[0]} > ${arrcurrversion[0]}" | bc`
   if [ $comparison -eq 0 ]
   then
     comparison=`echo "${arrnewversion[0]} < ${arrcurrversion[0]}" | bc`
     if [ $comparison -eq 0 ]
     then
       comparison=`echo "${arrnewversion[1]} > ${arrcurrversion[1]}" | bc`
     fi
   fi
 if [ $comparison -gt 0 ]  if [ $comparison -gt 0 ]
 then  then
   if [ -e $ckeditordir ]    if [ -e $ckeditordir ]
Line 18  then Line 28  then
     rm -rf $ckeditordir      rm -rf $ckeditordir
   fi    fi
   cd $htmldir    cd $htmldir
   echo $path/ckeditor_4.4.7.tar.gz    echo $path/ckeditor_4.22.1.tar.gz
   tar -zxf $path/ckeditor_4.4.7.tar.gz    tar -zxf $path/ckeditor_4.22.1.tar.gz
   cp -r $path/plugins/lcm ckeditor/plugins/    cp -r $path/plugins/lcm ckeditor/plugins/
     cp -r $path/plugins/chem ckeditor/plugins/
   cp $path/VERSION ckeditor/VERSION    cp $path/VERSION ckeditor/VERSION
   cp $path/loncapaconfig.js ckeditor/loncapaconfig.js    cp $path/loncapaconfig.js ckeditor/loncapaconfig.js
   chown -R www:www ckeditor    chown -R www:www ckeditor

Removed from v.1.7  
changed lines
  Added in v.1.12


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