W3C home > Mailing lists > Public > public-html-commits@w3.org > June 2008

html5/html4-differences Makefile,NONE,1.1

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 10 Jun 2008 08:23:59 +0000
To: public-html-commits@w3.org
Message-Id: <E1K5z95-0003Hu-5p@lionel-hutz.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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:32:57 GMT