[GRASS-SVN] r57808 - grass/trunk/display/d.barscale

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 22 04:04:02 PDT 2013


Author: martinl
Date: 2013-09-22 04:04:02 -0700 (Sun, 22 Sep 2013)
New Revision: 57808

Modified:
   grass/trunk/display/d.barscale/Makefile
   grass/trunk/display/d.barscale/main.c
Log:
d.barscale: update barscale opt, no need for sed tricks

Modified: grass/trunk/display/d.barscale/Makefile
===================================================================
--- grass/trunk/display/d.barscale/Makefile	2013-09-22 11:03:32 UTC (rev 57807)
+++ grass/trunk/display/d.barscale/Makefile	2013-09-22 11:04:02 UTC (rev 57808)
@@ -18,11 +18,3 @@
 
 $(HTMLDIR)/barscales: $(HTMLDIR)
 	$(MKDIR) $@
-
-# insert thumbnail previews
-$(PGM).tmp.html: $(BIN)/$(PGM)$(EXE)
-	$(call htmldesc,$<,$@)
-	sed 's!^<dd><b>\([a-z0-9._]*\)</b>:!<dd><img width="80" height="12" src="barscales/\1.png"> <b>\1</b>:!' "$@" > "$@.tmp"
-	mv -f "$@.tmp" "$@"
-
-.INTERMEDIATE: $(PGM).tmp.html

Modified: grass/trunk/display/d.barscale/main.c
===================================================================
--- grass/trunk/display/d.barscale/main.c	2013-09-22 11:03:32 UTC (rev 57807)
+++ grass/trunk/display/d.barscale/main.c	2013-09-22 11:04:02 UTC (rev 57808)
@@ -70,6 +70,7 @@
     barstyle->options =
 	"classic,line,solid,hollow,full_checker,part_checker,mixed_checker,tail_checker,up_ticks,down_ticks,both_ticks,arrow_ends";
     barstyle->answer = "classic";
+    barstyle->gisprompt = "old,barscale,barscale";
     barstyle->guisection = _("Style");
     G_asprintf((char **) &(barstyle->descriptions), 
                "classic;%s;"



More information about the grass-commit mailing list