Selaa lähdekoodia

d.barscale: update barscale opt, no need for sed tricks

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57808 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 vuotta sitten
vanhempi
commit
c74abdf4a4
2 muutettua tiedostoa jossa 1 lisäystä ja 8 poistoa
  1. 0 8
      display/d.barscale/Makefile
  2. 1 0
      display/d.barscale/main.c

+ 0 - 8
display/d.barscale/Makefile

@@ -18,11 +18,3 @@ $(HTMLDIR)/barscales/%.png: thumbnails/%.png | $(HTMLDIR)/barscales
 
 
 $(HTMLDIR)/barscales: $(HTMLDIR)
 $(HTMLDIR)/barscales: $(HTMLDIR)
 	$(MKDIR) $@
 	$(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

+ 1 - 0
display/d.barscale/main.c

@@ -70,6 +70,7 @@ int main(int argc, char **argv)
     barstyle->options =
     barstyle->options =
 	"classic,line,solid,hollow,full_checker,part_checker,mixed_checker,tail_checker,up_ticks,down_ticks,both_ticks,arrow_ends";
 	"classic,line,solid,hollow,full_checker,part_checker,mixed_checker,tail_checker,up_ticks,down_ticks,both_ticks,arrow_ends";
     barstyle->answer = "classic";
     barstyle->answer = "classic";
+    barstyle->gisprompt = "old,barscale,barscale";
     barstyle->guisection = _("Style");
     barstyle->guisection = _("Style");
     G_asprintf((char **) &(barstyle->descriptions), 
     G_asprintf((char **) &(barstyle->descriptions), 
                "classic;%s;"
                "classic;%s;"