[GRASS-SVN] r50215 - grass/trunk/gui/images
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 16 19:39:30 EST 2012
Author: hamish
Date: 2012-01-16 16:39:29 -0800 (Mon, 16 Jan 2012)
New Revision: 50215
Modified:
grass/trunk/gui/images/Makefile
Log:
install symbol thumbnails
Modified: grass/trunk/gui/images/Makefile
===================================================================
--- grass/trunk/gui/images/Makefile 2012-01-16 21:27:54 UTC (rev 50214)
+++ grass/trunk/gui/images/Makefile 2012-01-17 00:39:29 UTC (rev 50215)
@@ -6,10 +6,21 @@
FILES := $(wildcard *.png)
-default: $(patsubst %,$(ETCDIR)/%,$(FILES))
+default: $(patsubst %,$(ETCDIR)/%,$(FILES)) symbol_thumbnails
$(ETCDIR)/%.png: %.png | $(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