[GRASS-SVN] r47625 - grass/trunk/raster/r.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 14 07:37:46 EDT 2011


Author: martinl
Date: 2011-08-14 04:37:46 -0700 (Sun, 14 Aug 2011)
New Revision: 47625

Modified:
   grass/trunk/raster/r.colors/Makefile
Log:
r3.colors: show thumbnails in manual page


Modified: grass/trunk/raster/r.colors/Makefile
===================================================================
--- grass/trunk/raster/r.colors/Makefile	2011-08-14 11:36:10 UTC (rev 47624)
+++ grass/trunk/raster/r.colors/Makefile	2011-08-14 11:37:46 UTC (rev 47625)
@@ -19,6 +19,12 @@
 	mv -f "$@.tmp" "$@"
 	$(MAKE) thumbnails
 
+r3.colors.tmp.html: $(BIN)/r3.colors$(EXE) thumbnails.py
+	$(call htmldesc,$<,$@)
+	sed 's!^<DD><b>\([a-z0-9.]*\)</b>:!<DD><img width="80" height="12" src="Colortable_\1.png"> <b>\1</b>:!' "$@" > "$@.tmp"
+	mv -f "$@.tmp" "$@"
+	$(MAKE) thumbnails
+
 thumbnails: $(BIN)/r.mapcalc$(EXE)
 	-$(call run_grass, ./thumbnails.py)
 



More information about the grass-commit mailing list