[GRASS-SVN] r38222 - grass-addons/general/g.extension.add
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 5 06:02:50 EDT 2009
Author: neteler
Date: 2009-07-05 06:02:50 -0400 (Sun, 05 Jul 2009)
New Revision: 38222
Modified:
grass-addons/general/g.extension.add/Makefile
grass-addons/general/g.extension.add/description.html
grass-addons/general/g.extension.add/g.extension.add
Log:
fixes
Modified: grass-addons/general/g.extension.add/Makefile
===================================================================
--- grass-addons/general/g.extension.add/Makefile 2009-07-05 09:50:33 UTC (rev 38221)
+++ grass-addons/general/g.extension.add/Makefile 2009-07-05 10:02:50 UTC (rev 38222)
@@ -1,10 +1,7 @@
-MODULE_TOPDIR = ../../../grass
+MODULE_TOPDIR = ../..
PGM = g.extension.add
-LIBES = $(GISLIB)
-DEPENDENCIES = $(GISDEP)
+include $(MODULE_TOPDIR)/include/Make/Script.make
-include $(MODULE_TOPDIR)/include/Make/Module.make
-
-default: cmd
+default: script
Modified: grass-addons/general/g.extension.add/description.html
===================================================================
--- grass-addons/general/g.extension.add/description.html 2009-07-05 09:50:33 UTC (rev 38221)
+++ grass-addons/general/g.extension.add/description.html 2009-07-05 10:02:50 UTC (rev 38222)
@@ -2,6 +2,9 @@
<em>g.extension.add</em> downloads and installs extensions from
GRASS Addons SVN repository into the local GRASS installation.
+<p>
+Re-running the script on an installed GRASS Addon re-installs
+the requested extension which may include updates.
<h2>EXAMPLES</h2>
Modified: grass-addons/general/g.extension.add/g.extension.add
===================================================================
--- grass-addons/general/g.extension.add/g.extension.add 2009-07-05 09:50:33 UTC (rev 38221)
+++ grass-addons/general/g.extension.add/g.extension.add 2009-07-05 10:02:50 UTC (rev 38222)
@@ -43,6 +43,12 @@
SVNURL_ADDONS=https://svn.osgeo.org/grass/grass-addons/
MYTMP=/tmp
+# check if we have the svn client
+if [ ! -x "`which svn`" ] ; then
+ echo "ERROR: svn client required. Please install subversion first." 1>&2
+ exit 1
+fi
+
expand_module_class_name()
{
# $1: module class
More information about the grass-commit
mailing list