[GRASS-SVN] r51478 - grass/branches/releasebranch_6_4/gui/images

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 20 08:51:01 EDT 2012


Author: martinl
Date: 2012-04-20 05:51:01 -0700 (Fri, 20 Apr 2012)
New Revision: 51478

Added:
   grass/branches/releasebranch_6_4/gui/images/symbols/
Modified:
   grass/branches/releasebranch_6_4/gui/images/Makefile
Log:
backport symbols (d.vect) from devbr6


Modified: grass/branches/releasebranch_6_4/gui/images/Makefile
===================================================================
--- grass/branches/releasebranch_6_4/gui/images/Makefile	2012-04-19 15:47:09 UTC (rev 51477)
+++ grass/branches/releasebranch_6_4/gui/images/Makefile	2012-04-20 12:51:01 UTC (rev 51478)
@@ -9,7 +9,7 @@
 FILES := $(wildcard *.png)
 FILES += $(wildcard *.gif)
 
-default: $(patsubst %,$(ETCDIR)/%,$(FILES))
+default: $(patsubst %,$(ETCDIR)/%,$(FILES)) symbol_thumbnails
 
 $(ETCDIR)/%.png: %.png | $(ETCDIR)
 	$(INSTALL_DATA) $< $@
@@ -17,5 +17,16 @@
 $(ETCDIR)/%.gif: %.gif | $(ETCDIR)
 	$(INSTALL_DATA) $< $@
 
+symbol_thumbnails: $(ETCDIR)
+	if [ ! -d $(ETCDIR)/symbols ]; then $(MKDIR) $(ETCDIR)/symbols ; fi
+	for category in basic demo extra geology ; do \
+		if [ ! -d $(ETCDIR)/symbols/$$category ] ; then \
+			$(MKDIR) $(ETCDIR)/symbols/$$category ; \
+		fi ; \
+		for file in symbols/$$category/*.png ; do \
+			$(INSTALL_DATA) $$file $(ETCDIR)/symbols/$$category ; \
+		done ; \
+	done
+
 $(ETCDIR):
 	$(MKDIR) $@



More information about the grass-commit mailing list