[GRASS-SVN] r34901 - grass-addons/vector/v.profile

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 15 08:12:12 EST 2008


Author: marisn
Date: 2008-12-15 08:12:12 -0500 (Mon, 15 Dec 2008)
New Revision: 34901

Modified:
   grass-addons/vector/v.profile/Makefile
   grass-addons/vector/v.profile/README
   grass-addons/vector/v.profile/main.c
Log:
Fix module compilation with new v.build definition as it has been changed in 6.4.x

Modified: grass-addons/vector/v.profile/Makefile
===================================================================
--- grass-addons/vector/v.profile/Makefile	2008-12-15 10:08:40 UTC (rev 34900)
+++ grass-addons/vector/v.profile/Makefile	2008-12-15 13:12:12 UTC (rev 34901)
@@ -1,6 +1,7 @@
+# Uncoment and fix MODULE_TOPDIR line OR provide MODULE_TOPDIR variable for make
 # fix this relative to include/
 # or use absolute path to the GRASS source code
-MODULE_TOPDIR = ../../..
+# MODULE_TOPDIR = ../../..
 
 PGM = v.profile
 

Modified: grass-addons/vector/v.profile/README
===================================================================
--- grass-addons/vector/v.profile/README	2008-12-15 10:08:40 UTC (rev 34900)
+++ grass-addons/vector/v.profile/README	2008-12-15 13:12:12 UTC (rev 34901)
@@ -2,12 +2,12 @@
 
 v.profile requires GRASS 6.4 (r34499) or GRASS 7 (r34592 - not tested).
 
-To install v.profile, one needs to change MODULE_TOPDIR in supplied MAKE file to point to GRASS source base. If GRASS source is located in /home/user/soft/grass-6.4, then set MODULE_TOPDIR to /home/user/soft/grass-6.4. Before compiling this module, it's required to configure GRASS (it must have include/Make/Module.make file).
+To install v.profile, one needs to provide MODULE_TOPDIR variable for make command (MODULE_TOPDIR=/path/to/GRASS) or change MODULE_TOPDIR in supplied MAKE file to point to GRASS source base. If GRASS source is located in /home/user/soft/grass-6.4, then set MODULE_TOPDIR to /home/user/soft/grass-6.4. Before compiling this module, it's required to configure GRASS (it must have include/Make/Module.make file).
 
 Short version:
 svn co https://svn.osgeo.org/grass/grass-addons/vector/v.profile v.profile
 cd v.profile
-nano Makefile # edit MODULE_TOPDIR setting
-make
+#nano Makefile # altrenative - edit MODULE_TOPDIR setting
+MODULE_TOPDIR='/path/to/grass-source' make
 make install
 

Modified: grass-addons/vector/v.profile/main.c
===================================================================
--- grass-addons/vector/v.profile/main.c	2008-12-15 10:08:40 UTC (rev 34900)
+++ grass-addons/vector/v.profile/main.c	2008-12-15 13:12:12 UTC (rev 34901)
@@ -618,7 +618,7 @@
 
     /* Build topology for vector map and close them */
     if (new_map->answer != NULL) {
-	Vect_build(&Out, stdout);
+	Vect_build(&Out);
 	Vect_close(&Out);
     }
 



More information about the grass-commit mailing list