[GRASS-SVN] r62955 - grass/trunk/gui/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 00:47:29 PST 2014


Author: martinl
Date: 2014-11-26 00:47:29 -0800 (Wed, 26 Nov 2014)
New Revision: 62955

Modified:
   grass/trunk/gui/scripts/Makefile
Log:
wingrass: generate bat files also for GUI scripts

Modified: grass/trunk/gui/scripts/Makefile
===================================================================
--- grass/trunk/gui/scripts/Makefile	2014-11-25 16:54:02 UTC (rev 62954)
+++ grass/trunk/gui/scripts/Makefile	2014-11-26 08:47:29 UTC (rev 62955)
@@ -8,15 +8,19 @@
 
 ifdef MINGW
 PYFILES := $(patsubst %.py, $(DSTDIR)/%.py, $(filter %.py, $(PY_SOURCES)))
+BATFILES := $(patsubst %.py, $(DSTDIR)/%.bat, $(filter %.py, $(PY_SOURCES)))
 $(DSTDIR)/%.py: %.py | $(DSTDIR)
 	$(INSTALL) $< $@
+$(DSTDIR)/%.bat: $(MODULE_TOPDIR)/scripts/windows_launch.bat
+	sed -e "s#SCRIPT_NAME#$(*)#" -e "s#SCRIPT_DIR#%GISBASE%/gui/scripts#" $(MODULE_TOPDIR)/scripts/windows_launch.bat > $@
+	unix2dos $@
+default: $(PYFILES) $(BATFILES)
 else
 PYFILES := $(patsubst %.py, $(DSTDIR)/%, $(filter %.py, $(PY_SOURCES)))
 $(DSTDIR)/%: %.py | $(DSTDIR)
 	$(INSTALL) $< $@
+default: $(PYFILES)
 endif
 
-default: $(PYFILES)
-
 $(DSTDIR):
 	-test -d $@ | $(MKDIR) $@



More information about the grass-commit mailing list