r858 - trunk/scripts

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Sun Oct 24 13:31:50 PDT 2004


Author: lizardo
Date: 2004-10-24 14:31:48 -0600 (Sun, 24 Oct 2004)
New Revision: 858

Modified:
   trunk/scripts/update-website.mk
Log:
Fixed update-website.mk's validate rule. Added "time" command to hook script
to monitor its performance.



Modified: trunk/scripts/update-website.mk
===================================================================
--- trunk/scripts/update-website.mk	2004-10-24 19:39:19 UTC (rev 857)
+++ trunk/scripts/update-website.mk	2004-10-24 20:31:48 UTC (rev 858)
@@ -182,8 +182,8 @@
 # Validate XHTML files
 # FIXME better on a pre-commit script?
 validate:
-	for file in $$(find -name \*.html -maxdepth 3 -print); do \
-	if xmllint --valid --noout $$file then exit 1; fi; done
+	find -name \*.html -maxdepth 3 | fgrep -v -f scripts/rsync-ignore | while read file; do \
+	xmllint --valid --noout $$file || exit 1; done
 
 # Copy these to the httpd error dirs
 error-pages: 403.html 404.html




More information about the website mailing list