Return to commands CVS log | Up to [LON-CAPA] / loncom / html / adm / geogebra |
- Geogebra for HTML5 - Replace original 110MB geogebra_html5 tarball (4.2 test) with a smaller tarball for 4.2 (21 MB).
currversion=0.0 webdir='/home/httpd/html/adm/geogebra/web' if [ -e $webdir ] then if [ -e "$webdir/VERSION" ] then currversion=`cat $webdir/VERSION` fi fi newversion=`cat VERSION` comparison=`echo "$newversion > $currversion" | bc` if [ $comparison -gt 0 ] then if [ -e $webdir ] then rm -rf $webdir if [ -e "$webdir/geogebra_html5.tar.gz" ] then rm "$webdir/geogebra_html5.tar.gz" fi fi tar -xzf geogebraweb_4.2.tar.gz mv web $webdir cp VERSION $webdir/VERSION chown -R www:www $webdir find $webdir -type d -exec chmod u=rwx,go-rwx {} \; if [ -e "$webdir/geogebraweb_4.2.tar.gz" ] then rm "$webdir/geogebraweb_4.2.tar.gz" fi sleep 1 fi