Skip to content

Commit f810839

Browse files
committed
Copied Overview.html to Overview.src.html and made some quick changes to make it easy to change the status.
1 parent fedad5c commit f810839

2 files changed

Lines changed: 2726 additions & 0 deletions

File tree

selectors3/Makefile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Calling the post-processor with file-upload. Assumes the username
2+
# and password are in ~/.curl-w3.org
3+
#
4+
# To set a date other than today, use: make cdate=YYYYMMDD
5+
#
6+
# Possible other options:
7+
# -F ids=on
8+
9+
cdate = $(shell date +%Y%m%d)
10+
11+
%.html: %.src.html
12+
@echo "Calling post-processor to generate $@..."
13+
@curl -F file=@$< -F group=CSS -F output=html -F method=file -s \
14+
-F date=$(cdate) \
15+
-K ~/.curl-w3.org http://cgi.w3.org/member-bin/process.cgi >$@
16+
%.err: %.src.html
17+
@echo "Calling post-processor to check $<..."
18+
@curl -F file=@$< -F group=CSS -F output=err -F method=file -s \
19+
-F date=$(cdate) \
20+
-K ~/.curl-w3.org http://cgi.w3.org/member-bin/process.cgi >$@
21+
22+
23+
24+
all: check Overview.html
25+
@echo Done.
26+
27+
check: Overview.err
28+
@cat $<
29+
@grep -q '^No errors$$' $< # Force a non-zero exit code if errors
30+
31+
32+
33+
# A handy shortcut:
34+
35+
commit: update clean all
36+
cvs commit -m 'Generated. Do not edit!' Overview.html
37+
38+
update:
39+
cvs update
40+
41+
clean:
42+
rm Overview.html
43+
44+
45+
46+
.PHONY: check commit update clean

0 commit comments

Comments
 (0)