File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments