Pārlūkot izejas kodu

generate separate manual pages for g.gui.mapswipe script and wxGUI component
TODO: Makefile should be generalized


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53737 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 12 gadi atpakaļ
vecāks
revīzija
1e61a715d8

+ 6 - 1
gui/wxpython/mapswipe/Makefile

@@ -1,8 +1,13 @@
 MODULE_TOPDIR = ../../..
 
 PGM = g.gui.mapswipe
+WXPGM = MapSwipe
 
 include $(MODULE_TOPDIR)/include/Make/Script.make
-include $(MODULE_TOPDIR)/include/Make/NoHtml.make
 
 default: script
+	-rm -f $(PGM).tmp.html
+	$(MAKE) $(HTMLDIR)/wxGUI.$(WXPGM).html
+
+$(HTMLDIR)/wxGUI.$(WXPGM).html: $(PGM).html | $(HTMLDIR)
+	$(PYTHON) $(GISBASE)/tools/mkhtml.py $(PGM) $(GRASS_VERSION_DATE) > $@

+ 1 - 1
gui/wxpython/docs/wxGUI.MapSwipe.html

@@ -19,7 +19,7 @@ Map Swipe allows to:
 
 <center>
 <br>
-<img src="wxGUI_map_swipe.jpg" border="1" alt="Map swipe screenshot">
+<img src="mapswipe_tsunami.jpg" border="1" alt="Map swipe screenshot">
 <br>Pre and post disaster images of the tsunami in Japan in 2011. The upper MODIS image
 taken on February 26, 2011, shows the coastline under normal conditions while the lower
 MODIS image on March 13, 2011, shows a clear view of tsunami flooding along the coastline.

gui/wxpython/docs/wxGUI_map_swipe.jpg → gui/wxpython/mapswipe/mapswipe_tsunami.jpg