[gimp-help-2: 1/7] [make] Merge commands for copying CSS



commit 48d535f6bc15ebbbdab0b78fb5e165173c51c38c
Author: Ulf-D. Ehlert <ulfehlert svn gnome org>
Date:   Thu Aug 13 10:34:34 2009 +0200

    [make] Merge commands for copying CSS

 Makefile.GNU |   10 ++++------
 Makefile.am  |   10 ++++------
 2 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/Makefile.GNU b/Makefile.GNU
index 911e7a8..c531c1d 100644
--- a/Makefile.GNU
+++ b/Makefile.GNU
@@ -563,12 +563,10 @@ html/%/index.html: xml/% $(HTML_STYLESHEETS) html/%/images
 	  stylesheets/plainhtml.xsl \
 	  xml/$*/gimp.xml
 
-	$(cmd) for file in $(srcdir)/stylesheets/*.css; do \
-		if [ -f $$file ]; then cp -f $$file html/$*; fi; \
-	done
-
-	$(cmd) for file in $(srcdir)/stylesheets/$*/*.css; do \
-		if [ -f $$file ]; then cp -f $$file html/$*; fi; \
+	$(msg) "Copying stylesheets ... "
+	$(cmd) for file in $(srcdir)/stylesheets/*.css \
+	                   $(srcdir)/stylesheets/$*/*.css; do \
+		if [ -f $${file} ]; then cp -f $${file} html/$*; fi; \
 	done
 
 # TODO: check/enhance new image files structure
diff --git a/Makefile.am b/Makefile.am
index 166579c..5d9e548 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -583,12 +583,10 @@ html/%/index.html: xml/% $(HTML_STYLESHEETS) html/%/images
 	  stylesheets/plainhtml.xsl \
 	  xml/$*/gimp.xml
 
-	$(cmd) for file in $(srcdir)/stylesheets/*.css; do \
-		if [ -f $$file ]; then cp -f $$file html/$*; fi; \
-	done
-
-	$(cmd) for file in $(srcdir)/stylesheets/$*/*.css; do \
-		if [ -f $$file ]; then cp -f $$file html/$*; fi; \
+	$(msg) "Copying stylesheets ... "
+	$(cmd) for file in $(srcdir)/stylesheets/*.css \
+	                   $(srcdir)/stylesheets/$*/*.css; do \
+		if [ -f $${file} ]; then cp -f $${file} html/$*; fi; \
 	done
 
 # TODO: check/enhance new image files structure



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]