File:
[LON-CAPA] /
loncom /
html /
adm /
jsme /
commands
Revision
1.2:
download - view:
text,
annotated -
select for diffs
Fri Mar 13 18:40:45 2015 UTC (9 years, 10 months ago) by
raeburn
Branches:
MAIN
CVS tags:
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
version_2_11_1,
HEAD
- Update JSME to 2015-02-09 version.
currversion=0
jsmedir='/home/httpd/html/adm/jsme'
if [ -e $jsmedir ]
then
if [ -e "$jsmedir/VERSION" ]
then
currversion=`cat $jsmedir/VERSION`
fi
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
if [ -e $jsmedir ]
then
rm -rf $jsmedir
fi
unzip -q -o -d $jsmedir JSME_2015-02-09.zip
mv $jsmedir/JSME_2015-02-09/jsme/* $jsmedir/.
mv $jsmedir/JSME_2015-02-09/license.txt $jsmedir/license.txt
rm -r $jsmedir/JSME_2015-02-09
cp VERSION $jsmedir/VERSION
chown -R www:www $jsmedir
find $jsmedir -type d -exec chmod u=rwx,go-rwx {} \;
fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>