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, 5 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.
1: currversion=0
2: jsmedir='/home/httpd/html/adm/jsme'
3: if [ -e $jsmedir ]
4: then
5: if [ -e "$jsmedir/VERSION" ]
6: then
7: currversion=`cat $jsmedir/VERSION`
8: fi
9: fi
10: newversion=`cat VERSION`
11: comparison=`echo "$newversion > $currversion" | bc`
12: if [ $comparison -gt 0 ]
13: then
14: if [ -e $jsmedir ]
15: then
16: rm -rf $jsmedir
17: fi
18: unzip -q -o -d $jsmedir JSME_2015-02-09.zip
19: mv $jsmedir/JSME_2015-02-09/jsme/* $jsmedir/.
20: mv $jsmedir/JSME_2015-02-09/license.txt $jsmedir/license.txt
21: rm -r $jsmedir/JSME_2015-02-09
22: cp VERSION $jsmedir/VERSION
23: chown -R www:www $jsmedir
24: find $jsmedir -type d -exec chmod u=rwx,go-rwx {} \;
25: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>