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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 19 12:22:40 PST 2013


Author: martinl
Date: 2013-01-19 12:22:39 -0800 (Sat, 19 Jan 2013)
New Revision: 54713

Modified:
   grass-addons/tools/addons/compile.sh
   grass-addons/tools/addons/grass-addons.sh
Log:
addons: update support scripts


Modified: grass-addons/tools/addons/compile.sh
===================================================================
--- grass-addons/tools/addons/compile.sh	2013-01-19 20:11:14 UTC (rev 54712)
+++ grass-addons/tools/addons/compile.sh	2013-01-19 20:22:39 UTC (rev 54713)
@@ -95,13 +95,13 @@
 	    echo " FAILED"
 	    echo "<td style=\"background-color: red\">FAILED</td>" >> "$ADDON_PATH/logs/$INDEX_FILE"
 	fi
-	echo -e "<td><a href=\"$m.log\">log</a></td>\n</tr>" >> "$ADDON_PATH/logs/$INDEX_FILE"
+	echo "<td><a href=\"$m.log\">log</a></td>\n</tr>" >> "$ADDON_PATH/logs/$INDEX_FILE"
 	cd ..
     done
     cd ..
 done
 
-echo -e "</table><hr />
+echo "</table><hr />
 <div style=\"text-align: right\">Valid: <a href=\"http://validator.w3.org/check/referer\">XHTML</a></div>
 </body>\n</html>\n" >> "$ADDON_PATH/logs/$INDEX_FILE"
 

Modified: grass-addons/tools/addons/grass-addons.sh
===================================================================
--- grass-addons/tools/addons/grass-addons.sh	2013-01-19 20:11:14 UTC (rev 54712)
+++ grass-addons/tools/addons/grass-addons.sh	2013-01-19 20:22:39 UTC (rev 54713)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 DIR=$HOME/src
+WWWDIR=/osgeo/grass/grass-cms/addons/
 
 build_addons() {
 cd $DIR/grass-addons/ 
@@ -13,6 +14,11 @@
 
     cd tools/addons/ 
     ./compile-xml.sh
+    for version in 6 7 ; do
+	cd $HOME/.grass${version}/addons/
+	cp modules.xml $WWWDIR/grass${version}/
+	rsync -ag --delete logs $WWWDIR/grass${version}/
+    done
 else
     echo "$revl X $revr -> nothing to do"
 fi



More information about the grass-commit mailing list