css3-conditional/Makefile

changeset 7412
3b40faa91133
parent 7101
83634d890cb6
     1.1 --- a/css3-conditional/Makefile	Fri Feb 08 14:04:09 2013 -0800
     1.2 +++ b/css3-conditional/Makefile	Fri Feb 08 21:43:29 2013 -0800
     1.3 @@ -1,16 +1,29 @@
     1.4  # Calling the post-processor with file-upload. Assumes the username
     1.5 -# and password are in ~/.curl-w3.org
     1.6 +# and password are in ~/.curl-w3.org (user = USER:PASS)
     1.7  #
     1.8 -# Possible other options:
     1.9 -# -F date=YYYY-MM-DD
    1.10 +# To set a date other than today, use: make cdate=YYYYMMDD
    1.11 +#
    1.12 +# To set the status, modify one of the "this version" URLs:
    1.13 +# http://www.w3.org/TR/[YEAR]/CR-[SHORTNAME]-[CDATE]/
    1.14 +# Or set that URL to [VERSION] and call Make as: make status=CR
    1.15 +#
    1.16 +#
    1.17 +# Possible other options to add to the curl command below:
    1.18  # -F ids=on
    1.19  
    1.20 +cdate = $(shell date +%Y%m%d)
    1.21 +status = ED
    1.22 +
    1.23  %.html: %.src.html
    1.24  	@echo "Calling post-processor to generate $@..."
    1.25 -	@curl -F file=@$< -F group=CSS -F output=html -F method=file -s -K ~/.curl-w3.org https://www.w3.org/Style/Group/process.cgi >$@
    1.26 +	@curl -F file=@$< -F group=CSS -F output=html -F method=file -s \
    1.27 +	-F date=$(cdate) -F status=$(status) \
    1.28 +	-K ~/.curl-w3.org https://www.w3.org/Style/Group/process.cgi >$@
    1.29  %.err: %.src.html
    1.30  	@echo "Calling post-processor to check $<..."
    1.31 -	@curl -F file=@$< -F group=CSS -F output=err -F method=file -s -K ~/.curl-w3.org https://www.w3.org/Style/Group/process.cgi >$@
    1.32 +	@curl -F file=@$< -F group=CSS -F output=err -F method=file -s \
    1.33 +	-F date=$(cdate) -F status=$(status) \
    1.34 +	-K ~/.curl-w3.org https://www.w3.org/Style/Group/process.cgi >$@
    1.35  
    1.36  
    1.37  
    1.38 @@ -25,15 +38,9 @@
    1.39  
    1.40  # A handy shortcut:
    1.41  
    1.42 -commit: update clean all
    1.43 -	cvs commit -m 'Generated. Do not edit!' Overview.html
    1.44 -
    1.45 -update:
    1.46 -	cvs update
    1.47 -
    1.48  clean:
    1.49  	rm Overview.html
    1.50  
    1.51  
    1.52  
    1.53 -.PHONY: check commit update clean
    1.54 +.PHONY: check clean

mercurial