Annotation of loncom/html/adm/ckeditor/commands, revision 1.7

1.1       faziophi    1: path=`pwd`
1.4       raeburn     2: htmldir='/home/httpd/html'
1.7     ! damieng     3: currversion=4.47
1.6       raeburn     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
1.7     ! damieng    21:   echo $path/ckeditor_4.4.7.tar.gz
        !            22:   tar -zxf $path/ckeditor_4.4.7.tar.gz
        !            23:   cp -r $path/plugins/lcm ckeditor/plugins/
1.6       raeburn    24:   cp $path/VERSION ckeditor/VERSION
                     25:   cp $path/loncapaconfig.js ckeditor/loncapaconfig.js
                     26:   chown -R www:www ckeditor
                     27: fi
1.4       raeburn    28: if [ -e "$htmldir/fckeditor" ]
                     29: then
                     30:     rm -rf $htmldir/fckeditor
                     31: fi
                     32: if [ -e "$htmldir/htmlarea" ]
                     33: then
                     34:     rm -rf $htmldir/htmlarea
                     35: fi
1.6       raeburn    36: if  [ -e "$htmldir/adm/ckeditor" ]
                     37: then
                     38:     rm -rf $htmldir/adm/ckeditor
                     39: fi

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