- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 10 Jun 2008 08:23:59 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html4-differences In directory hutz:/tmp/cvs-serv12536 Added Files: Makefile Log Message: added Makefile for doing automated validation and link-checking --- NEW FILE: Makefile --- CURL=curl CURLFLAGS=-s VNU=http://validator.nu VNUFLAGS=-F level=error -F out=gnu CHECKLINK=checklink CHECKLINKFLAGS=-q -b -t 15 TEE=tee TEEFLAGS=-a GREP=egrep GREPFLAGS= CUT=cut CUTFLAGS= WGET=wget WGETFLAGS=--spider -nv --timeout=15 all: CHECKLOG CHECKLOG: Overview.html echo "checking $(realpath $<)" >> $@ echo "Performing validation..." >> $@ $(CURL) $(CURLFLAGS) $(VNUFLAGS) -F doc=@$< $(VNU) && echo "Document is valid." >> $@ $(CHECKLINK) $(CHECKLINKFLAGS) $< | $(TEE) $(TEEFLAGS) $@ for file in $$($(GREP) $(GREPFLAGS) "^http" $@ | $(CUT) $(CUTFLAGS) -f1); do \ ($(WGET) $(WGETFLAGS) "$$file" 2>&1 && echo "File exists: $$file") \ | $(TEE) $(TEEFLAGS) $@; \ done clean: $(RM) CHECKLOG
Received on Tuesday, 10 June 2008 08:24:34 UTC