Fri, 08 Feb 2013 21:43:29 -0800
[css3-conditional] Specify behavior of insertRule when given an empty string or more than one syntactically valid rule.
This is as proposed in
http://lists.w3.org/Archives/Public/www-style/2013Feb/0229.html
and addresses Last Call issue 5.
dbaron@2974 | 1 | # Calling the post-processor with file-upload. Assumes the username |
dbaron@7412 | 2 | # and password are in ~/.curl-w3.org (user = USER:PASS) |
dbaron@2974 | 3 | # |
dbaron@7412 | 4 | # To set a date other than today, use: make cdate=YYYYMMDD |
dbaron@7412 | 5 | # |
dbaron@7412 | 6 | # To set the status, modify one of the "this version" URLs: |
dbaron@7412 | 7 | # http://www.w3.org/TR/[YEAR]/CR-[SHORTNAME]-[CDATE]/ |
dbaron@7412 | 8 | # Or set that URL to [VERSION] and call Make as: make status=CR |
dbaron@7412 | 9 | # |
dbaron@7412 | 10 | # |
dbaron@7412 | 11 | # Possible other options to add to the curl command below: |
dbaron@2974 | 12 | # -F ids=on |
dbaron@2974 | 13 | |
dbaron@7412 | 14 | cdate = $(shell date +%Y%m%d) |
dbaron@7412 | 15 | status = ED |
dbaron@7412 | 16 | |
dbaron@2974 | 17 | %.html: %.src.html |
dbaron@2974 | 18 | @echo "Calling post-processor to generate $@..." |
dbaron@7412 | 19 | @curl -F file=@$< -F group=CSS -F output=html -F method=file -s \ |
dbaron@7412 | 20 | -F date=$(cdate) -F status=$(status) \ |
dbaron@7412 | 21 | -K ~/.curl-w3.org https://www.w3.org/Style/Group/process.cgi >$@ |
dbaron@2974 | 22 | %.err: %.src.html |
dbaron@2974 | 23 | @echo "Calling post-processor to check $<..." |
dbaron@7412 | 24 | @curl -F file=@$< -F group=CSS -F output=err -F method=file -s \ |
dbaron@7412 | 25 | -F date=$(cdate) -F status=$(status) \ |
dbaron@7412 | 26 | -K ~/.curl-w3.org https://www.w3.org/Style/Group/process.cgi >$@ |
dbaron@2974 | 27 | |
dbaron@2974 | 28 | |
dbaron@2974 | 29 | |
dbaron@2974 | 30 | all: check Overview.html |
dbaron@2974 | 31 | @echo Done. |
dbaron@2974 | 32 | |
dbaron@2974 | 33 | check: Overview.err |
dbaron@2974 | 34 | @cat $< |
dbaron@2974 | 35 | @grep -q '^No errors$$' $< # Force a non-zero exit code if errors |
dbaron@2974 | 36 | |
dbaron@2974 | 37 | |
dbaron@2974 | 38 | |
dbaron@2974 | 39 | # A handy shortcut: |
dbaron@2974 | 40 | |
dbaron@2974 | 41 | clean: |
dbaron@2974 | 42 | rm Overview.html |
dbaron@2974 | 43 | |
dbaron@2974 | 44 | |
dbaron@2974 | 45 | |
dbaron@7412 | 46 | .PHONY: check clean |