[GRASS-SVN] r65822 - grass-addons/tools/addons

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 3 14:35:56 PDT 2015


Author: neteler
Date: 2015-08-03 14:35:56 -0700 (Mon, 03 Aug 2015)
New Revision: 65822

Modified:
   grass-addons/tools/addons/grass-addons-index.sh
   grass-addons/tools/addons/grass-addons-publish.sh
   grass-addons/tools/addons/grass-addons.sh
Log:
grass-addons script: updated to new CMS path on grass.osgeo.org

Modified: grass-addons/tools/addons/grass-addons-index.sh
===================================================================
--- grass-addons/tools/addons/grass-addons-index.sh	2015-08-03 21:04:27 UTC (rev 65821)
+++ grass-addons/tools/addons/grass-addons-index.sh	2015-08-03 21:35:56 UTC (rev 65822)
@@ -5,11 +5,11 @@
 #
 # Markus Neteler 9/2002
 # updated for GRASS GIS Addons by Markus Neteler and Martin Landa, 2013
+# updated for new CMS path MN 8/2015
 
-
 ##################
 # generated Addon HTML manual pages are expected to be in the directory
-# /osgeo/grass/grass-cms/grass${major}${minor}/manuals/addons
+# /var/www/grass/grass-cms/grass${major}${minor}/manuals/addons
 
 generate () {
     # 6 4 | 7 0
@@ -19,7 +19,7 @@
     # DEBUG
     # mkdir -p /tmp/grass${major}${minor}/manuals/addons ; cd /tmp/grass${major}${minor}/manuals/addons
     # grass.osgeo.org SERVER
-    cd /osgeo/grass/grass-cms/grass${major}${minor}/manuals/addons
+    cd /var/www/grass/grass-cms/grass${major}${minor}/manuals/addons
 
     if test -f index.html ; then
 	mv index.html index.html.bak

Modified: grass-addons/tools/addons/grass-addons-publish.sh
===================================================================
--- grass-addons/tools/addons/grass-addons-publish.sh	2015-08-03 21:04:27 UTC (rev 65821)
+++ grass-addons/tools/addons/grass-addons-publish.sh	2015-08-03 21:35:56 UTC (rev 65822)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+# updated for new CMS path MN 8/2015
+
 URL=http://geo102.fsv.cvut.cz/grass/addons/
 ADDONS=${HOME}/src/grass-addons
 
@@ -8,17 +10,17 @@
     minor=$2
 
     echo "Updating manuals for GRASS ${major}.${minor}..."
-    wget -q $URL/grass${major}/modules.xml -O /osgeo/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
     wget -q $URL/grass${major}/logs.tar.gz -O logs.tar.gz
     wget -q $URL/grass${major}/html.tar.gz -O html.tar.gz
 
     tar xzf logs.tar.gz
-    rm -rf /osgeo/grass/grass-cms/addons/grass${major}/logs
-    mv logs /osgeo/grass/grass-cms/addons/grass${major}/
+    rm -rf /var/www/grass/grass-cms/addons/grass${major}/logs
+    mv logs /var/www/grass/grass-cms/addons/grass${major}/
 
     tar xzf html.tar.gz
-    rm -rf /osgeo/grass/grass-cms/grass${major}${minor}/manuals/addons
-    mv addons /osgeo/grass/grass-cms/grass${major}${minor}/manuals/
+    rm -rf /var/www/grass/grass-cms/grass${major}${minor}/manuals/addons
+    mv addons /var/www/grass/grass-cms/grass${major}${minor}/manuals/
     rm logs.tar.gz
     rm html.tar.gz
 }

Modified: grass-addons/tools/addons/grass-addons.sh
===================================================================
--- grass-addons/tools/addons/grass-addons.sh	2015-08-03 21:04:27 UTC (rev 65821)
+++ grass-addons/tools/addons/grass-addons.sh	2015-08-03 21:35:56 UTC (rev 65822)
@@ -1,8 +1,10 @@
 #!/bin/sh
 
+# updated for new CMS path MN 8/2015
+
 DIR=$HOME/src
-# XMLDIR=/osgeo/grass/grass-cms/addons/
-# MANDIR=/osgeo/grass/grass-cms/
+# XMLDIR=/var/www/grass/grass-cms/addons/
+# MANDIR=/var/www/grass/grass-cms/
 XMLDIR=/var/www/grass/addons/
 MANDIR=/var/www/grass
 



More information about the grass-commit mailing list