[GRASS-SVN] r61136 - in grass/trunk: include/Make scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 3 07:42:15 PDT 2014


Author: martinl
Date: 2014-07-03 07:42:15 -0700 (Thu, 03 Jul 2014)
New Revision: 61136

Added:
   grass/trunk/scripts/windows_launch.bat
Modified:
   grass/trunk/include/Make/Script.make
Log:
wingrass: produce bat files for scripts

Modified: grass/trunk/include/Make/Script.make
===================================================================
--- grass/trunk/include/Make/Script.make	2014-07-03 14:39:53 UTC (rev 61135)
+++ grass/trunk/include/Make/Script.make	2014-07-03 14:42:15 UTC (rev 61136)
@@ -18,9 +18,16 @@
 include $(MODULE_TOPDIR)/include/Make/ScriptRules.make
 
 SCRIPT_ACTIONS = $(SCRIPT) $(ETCPYFILES) $(ETCPYCFILES) html scriptstrings
+ifdef MINGW
+SCRIPT_ACTIONS += $(BIN)/$(PGM).bat
+endif
 
 script: $(SCRIPT_ACTIONS)
 
+$(BIN)/$(PGM).bat: $(MODULE_TOPDIR)/scripts/windows_launch.bat
+	sed -e "s#SCRIPT_NAME#$(PGM)#" $(MODULE_TOPDIR)/scripts/windows_launch.bat > $@
+	unix2dos $@
+
 scriptstrings: $(STRINGDIR)/$(PGM)_to_translate.c
 
 install:

Added: grass/trunk/scripts/windows_launch.bat
===================================================================
--- grass/trunk/scripts/windows_launch.bat	                        (rev 0)
+++ grass/trunk/scripts/windows_launch.bat	2014-07-03 14:42:15 UTC (rev 61136)
@@ -0,0 +1 @@
+@"%GRASS_PYTHON%" "%GISBASE%/scripts/SCRIPT_NAME.py" %*



More information about the grass-commit mailing list