[GRASS-SVN] r34192 - grass/trunk/include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Nov 8 10:01:09 EST 2008


Author: glynn
Date: 2008-11-08 10:01:09 -0500 (Sat, 08 Nov 2008)
New Revision: 34192

Modified:
   grass/trunk/include/Make/ScriptRules.make
Log:
Make *_to_translate.c files from Python scripts as well as shell scripts


Modified: grass/trunk/include/Make/ScriptRules.make
===================================================================
--- grass/trunk/include/Make/ScriptRules.make	2008-11-08 08:53:50 UTC (rev 34191)
+++ grass/trunk/include/Make/ScriptRules.make	2008-11-08 15:01:09 UTC (rev 34192)
@@ -18,10 +18,16 @@
 # These are only the options (parser.c) type things.
 # See locale/scriptstrings/README for more information
 
-$(STRINGDIR)/%_to_translate.c: %
+strings = \
 	GISRC=$(RUN_GISRC) \
 	GISBASE=$(RUN_GISBASE) \
 	PATH=$(BIN):$$PATH \
 	$(LD_LIBRARY_PATH_VAR)="$(ARCH_LIBDIR):$($(LD_LIBRARY_PATH_VAR))" \
-	g.parser -t $< | sed s/\"/\\\\\"/g | sed 's/.*/_("&")/' > \
-	$@ ; true
+	g.parser -t $(1) | sed s/\"/\\\\\"/g | sed 's/.*/_("&")/' > \
+	$(2) ; true
+
+$(STRINGDIR)/%_to_translate.c: %.py
+	$(call strings,$<,$@)
+
+$(STRINGDIR)/%_to_translate.c: %
+	$(call strings,$<,$@)



More information about the grass-commit mailing list