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

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

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