[GRASS-SVN] r40207 - in grass/trunk: include/Make tools

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 3 13:49:09 EST 2010


Author: glynn
Date: 2010-01-03 13:49:08 -0500 (Sun, 03 Jan 2010)
New Revision: 40207

Added:
   grass/trunk/tools/g.echo.c
Modified:
   grass/trunk/include/Make/Rules.make
   grass/trunk/tools/
   grass/trunk/tools/Makefile
Log:
Add, use tools/g.echo (g.dirseps is built too late)


Modified: grass/trunk/include/Make/Rules.make
===================================================================
--- grass/trunk/include/Make/Rules.make	2010-01-03 13:08:19 UTC (rev 40206)
+++ grass/trunk/include/Make/Rules.make	2010-01-03 18:49:08 UTC (rev 40207)
@@ -22,7 +22,7 @@
 	$(INSTALL_DATA) $< $@
 
 ifneq ($(MINGW),)
-mkpath = $(shell PATH="$(GISBASE)/bin:$(ARCH_LIBDIR):$$PATH" GISRC=$(RUN_GISRC) $(BIN)/g.dirseps$(EXE) -h $(1));$(2)
+mkpath = $(shell $(TOOLSDIR)/g.echo$(EXE) $(1));$(2)
 else
 mkpath = $(1):$(2)
 endif


Property changes on: grass/trunk/tools
___________________________________________________________________
Added: svn:ignore
   + *OBJ*


Modified: grass/trunk/tools/Makefile
===================================================================
--- grass/trunk/tools/Makefile	2010-01-03 13:08:19 UTC (rev 40206)
+++ grass/trunk/tools/Makefile	2010-01-03 18:49:08 UTC (rev 40207)
@@ -3,8 +3,12 @@
 SUBDIRS = timer g.html2man
 
 include $(MODULE_TOPDIR)/include/Make/Dir.make
+include $(MODULE_TOPDIR)/include/Make/Compile.make
 
-default: parsubdirs $(TOOLSDIR)/mkhtml.py
+default: parsubdirs $(TOOLSDIR)/mkhtml.py $(TOOLSDIR)/g.echo$(EXE)
 
 $(TOOLSDIR)/mkhtml.py: mkhtml.py
 	$(INSTALL) $< $@
+
+$(TOOLSDIR)/g.echo$(EXE): $(OBJDIR)/g.echo.o
+	$(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) -o $@ $^

Added: grass/trunk/tools/g.echo.c
===================================================================
--- grass/trunk/tools/g.echo.c	                        (rev 0)
+++ grass/trunk/tools/g.echo.c	2010-01-03 18:49:08 UTC (rev 40207)
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+    if (argc != 2)
+	return 1;
+    fputs(argv[1], stdout);
+    return 0;
+}



More information about the grass-commit mailing list