[GRASS-SVN] r57109 - grass/trunk/include/Make
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 14 03:24:52 PDT 2013
Author: martinl
Date: 2013-07-14 03:24:51 -0700 (Sun, 14 Jul 2013)
New Revision: 57109
Modified:
grass/trunk/include/Make/Script.make
Log:
Script.make: copy etc dir only if it's not empty
Modified: grass/trunk/include/Make/Script.make
===================================================================
--- grass/trunk/include/Make/Script.make 2013-07-14 10:05:38 UTC (rev 57108)
+++ grass/trunk/include/Make/Script.make 2013-07-14 10:24:51 UTC (rev 57109)
@@ -27,7 +27,7 @@
$(INSTALL) $(SCRIPT) $(INST_DIR)/scripts/
$(INSTALL_DATA) $(HTMLDIR)/$(PGM).html $(INST_DIR)/docs/html/
$(INSTALL_DATA) $(ARCH_DISTDIR)/docs/man/man1/$(PGM).1 $(INST_DIR)/docs/man/man1/
- if [ -d "$(ETC)/$(PGM)" ] ; then \
+ if [ -d "$(ETC)/$(PGM)" -a "$(ls -A $(ETC)/$(PGM))" ] ; then \
cp -rL $(ETC)/$(PGM) $(INST_DIR)/etc/ ; \
fi
More information about the grass-commit
mailing list