version 1.11, 2024/05/22 16:23:10
|
version 1.13, 2024/09/23 20:31:07
|
Line 1
|
Line 1
|
path=`pwd` |
path=`pwd` |
htmldir='/home/httpd/html' |
htmldir='/home/httpd/html' |
currversion=4.47 |
currversion=0.0.0 |
ckeditordir="$htmldir/ckeditor" |
ckeditordir="$htmldir/ckeditor" |
if [ -e $ckeditordir ] |
if [ -e $ckeditordir ] |
then |
then |
Line 11 then
|
Line 11 then
|
fi |
fi |
newversion=`cat VERSION` |
newversion=`cat VERSION` |
arrnewversion=(${newversion//./ }) |
arrnewversion=(${newversion//./ }) |
|
arrnewlength=${#arrnewversion[@]} |
|
arrnewcomp=`echo "$arrnewlength < 3" | bc` |
|
if [ $arrnewcomp -gt 0 ] |
|
then |
|
arrnewversion[2]=0; |
|
fi |
arrcurrversion=(${currversion//./ }) |
arrcurrversion=(${currversion//./ }) |
|
arrcurrlength=${#arrcurrversion[@]} |
|
arrcurrcomp=`echo "$arrcurrlength < 3" | bc` |
|
if [ $arrcurrcomp -gt 0 ] |
|
then |
|
arrcurrversion[2]=0; |
|
fi |
comparison=`echo "${arrnewversion[0]} > ${arrcurrversion[0]}" | bc` |
comparison=`echo "${arrnewversion[0]} > ${arrcurrversion[0]}" | bc` |
if [ $comparison -eq 0 ] |
if [ $comparison -eq 0 ] |
then |
then |
Line 19 then
|
Line 31 then
|
if [ $comparison -eq 0 ] |
if [ $comparison -eq 0 ] |
then |
then |
comparison=`echo "${arrnewversion[1]} > ${arrcurrversion[1]}" | bc` |
comparison=`echo "${arrnewversion[1]} > ${arrcurrversion[1]}" | bc` |
|
if [ $comparison -eq 0 ] |
|
then |
|
comparison=`echo "${arrnewversion[1]} < ${arrcurrversion[1]}" | bc` |
|
if [ $comparison -eq 0 ] |
|
then |
|
comparison=`echo "${arrnewversion[2]} > ${arrcurrversion[2]}" | bc` |
|
fi |
|
fi |
fi |
fi |
fi |
fi |
if [ $comparison -gt 0 ] |
if [ $comparison -gt 0 ] |
Line 30 then
|
Line 50 then
|
cd $htmldir |
cd $htmldir |
echo $path/ckeditor_4.22.1.tar.gz |
echo $path/ckeditor_4.22.1.tar.gz |
tar -zxf $path/ckeditor_4.22.1.tar.gz |
tar -zxf $path/ckeditor_4.22.1.tar.gz |
|
echo $path/a11ychecker_1.1.1.tar.gz |
|
tar -zxf $path/a11ychecker_1.1.1.tar.gz |
|
mv a11ychecker ckeditor/plugins/ |
|
echo $path/balloonpanel_4.22.1.tar.gz |
|
tar -zxf $path/balloonpanel_4.22.1.tar.gz |
|
mv balloonpanel ckeditor/plugins/ |
cp -r $path/plugins/lcm ckeditor/plugins/ |
cp -r $path/plugins/lcm ckeditor/plugins/ |
cp -r $path/plugins/chem ckeditor/plugins/ |
cp -r $path/plugins/chem ckeditor/plugins/ |
cp $path/VERSION ckeditor/VERSION |
cp $path/VERSION ckeditor/VERSION |