[GRASS-SVN] r71525 - grass-addons/tools/addons
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 2 13:27:52 PDT 2017
Author: neteler
Date: 2017-10-02 13:27:52 -0700 (Mon, 02 Oct 2017)
New Revision: 71525
Modified:
grass-addons/tools/addons/grass-addons-publish.sh
Log:
addons modules.xml: don't ruin modules.xml on the Web server if build server geo102.fsv.cvut.cz is down or broken
Modified: grass-addons/tools/addons/grass-addons-publish.sh
===================================================================
--- grass-addons/tools/addons/grass-addons-publish.sh 2017-10-02 13:48:46 UTC (rev 71524)
+++ grass-addons/tools/addons/grass-addons-publish.sh 2017-10-02 20:27:52 UTC (rev 71525)
@@ -17,7 +17,11 @@
minor=$2
# echo "Updating manuals for GRASS ${major}.${minor}..."
- wget -q $URL/grass${major}/modules.xml -O /var/www/grass/grass-cms/addons/grass${major}/modules.xml
+ wget -q $URL/grass${major}/modules.xml -O /var/www/grass/grass-cms/addons/grass${major}/modules.xml.new
+ if [ $? -eq 0 ] ; then
+ # don't ruin modules.xml on the Web server if build server is down or broken
+ mv -f /var/www/grass/grass-cms/addons/grass${major}/modules.xml.new /var/www/grass/grass-cms/addons/grass${major}/modules.xml
+ fi
wget -q $URL/grass${major}/logs.tar.gz -O logs.tar.gz
wget -q $URL/grass${major}/html.tar.gz -O html.tar.gz
More information about the grass-commit
mailing list