Annotation of loncom/html/adm/ckeditor/commands, revision 1.12
1.1 faziophi 1: path=`pwd`
1.4 raeburn 2: htmldir='/home/httpd/html'
1.12 ! raeburn 3: currversion=0.0
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`
1.11 raeburn 13: arrnewversion=(${newversion//./ })
14: arrcurrversion=(${currversion//./ })
15: comparison=`echo "${arrnewversion[0]} > ${arrcurrversion[0]}" | bc`
16: if [ $comparison -eq 0 ]
17: then
18: comparison=`echo "${arrnewversion[0]} < ${arrcurrversion[0]}" | bc`
19: if [ $comparison -eq 0 ]
20: then
21: comparison=`echo "${arrnewversion[1]} > ${arrcurrversion[1]}" | bc`
22: fi
23: fi
1.6 raeburn 24: if [ $comparison -gt 0 ]
25: then
26: if [ -e $ckeditordir ]
27: then
28: rm -rf $ckeditordir
29: fi
30: cd $htmldir
1.11 raeburn 31: echo $path/ckeditor_4.22.1.tar.gz
32: tar -zxf $path/ckeditor_4.22.1.tar.gz
1.7 damieng 33: cp -r $path/plugins/lcm ckeditor/plugins/
1.8 damieng 34: cp -r $path/plugins/chem ckeditor/plugins/
1.6 raeburn 35: cp $path/VERSION ckeditor/VERSION
36: cp $path/loncapaconfig.js ckeditor/loncapaconfig.js
37: chown -R www:www ckeditor
38: fi
1.4 raeburn 39: if [ -e "$htmldir/fckeditor" ]
40: then
41: rm -rf $htmldir/fckeditor
42: fi
43: if [ -e "$htmldir/htmlarea" ]
44: then
45: rm -rf $htmldir/htmlarea
46: fi
1.6 raeburn 47: if [ -e "$htmldir/adm/ckeditor" ]
48: then
49: rm -rf $htmldir/adm/ckeditor
50: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>