version 1.1, 2011/12/06 16:23:30
|
version 1.2, 2012/05/24 01:35:55
|
Line 1
|
Line 1
|
rm -rf $1/ |
currversion=0.0 |
unzip -q -o -d $1 mathjax-MathJax-v1.1a-0-g1697387.zip |
if [ -e "$1/VERSION" ] |
mv $1/mathjax-MathJax-f5cd294/* $1/. |
then |
rm -r $1/mathjax-MathJax-f5cd294 |
currversion=`cat $1/VERSION` |
chown -R www:www $1 |
fi |
find $1 -type d -exec chmod u=rwx,go-rwx {} \; |
newversion=`cat VERSION` |
|
comparison=`echo "$newversion > $currversion" | bc` |
|
if [ $comparison -gt 0 ] |
|
then |
|
rm -rf $1/ |
|
unzip -q -o -d $1 mathjax-MathJax-v2.0-20-g07669ac.zip |
|
mv $1/mathjax-MathJax-07669ac/* $1/. |
|
rm -r $1/mathjax-MathJax-07669ac |
|
cp VERSION $1/VERSION |
|
chown -R www:www $1 |
|
find $1 -type d -exec chmod u=rwx,go-rwx {} \; |
|
fi |