Skip to content

Commit 1d007d3

Browse files
committed
Updated the Makefile to use Mercurial instead of CVS. Added option to specify a date other than today.
1 parent 3282803 commit 1d007d3

1 file changed

Lines changed: 21 additions & 8 deletions

File tree

css3-transitions/Makefile

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
# Calling the post-processor with file-upload. Assumes the username
2-
# and password are in ~/.curl-w3.org
2+
# and password are in ~/.curl-w3.org (user = USER:PASS)
33
#
4-
# Possible other options:
5-
# -F date=YYYY-MM-DD
4+
# To set a date other than today, use: make cdate=YYYYMMDD
5+
#
6+
# To set the status, modify one of the "this version" URLs:
7+
# http://www.w3.org/TR/[YEAR]/CR-[SHORTNAME]-[CDATE]/
8+
# Or set that URL to [VERSION] and call Make as: make status=CR
9+
#
10+
#
11+
# Possible other options to add to the curl command below:
612
# -F ids=on
713

14+
cdate = $(shell date +%Y%m%d)
15+
816
%.html: %.src.html
917
@echo "Calling post-processor to generate $@..."
10-
@curl -F file=@$< -F group=CSS -F output=html -F method=file -s -K ~/.curl-w3.org http://cgi.w3.org/member-bin/process.cgi >$@
18+
@curl -F file=@$< -F group=CSS -F output=html -F method=file -s \
19+
-F date=$(cdate) -F status=$(status) \
20+
-K ~/.curl-w3.org http://cgi.w3.org/member-bin/process.cgi >$@
1121
%.err: %.src.html
1222
@echo "Calling post-processor to check $<..."
13-
@curl -F file=@$< -F group=CSS -F output=err -F method=file -s -K ~/.curl-w3.org http://cgi.w3.org/member-bin/process.cgi >$@
23+
@curl -F file=@$< -F group=CSS -F output=err -F method=file -s \
24+
-F date=$(cdate) -F status=$(status) \
25+
-K ~/.curl-w3.org http://cgi.w3.org/member-bin/process.cgi >$@
1426

1527

1628

@@ -26,13 +38,14 @@ check: Overview.err
2638
# A handy shortcut:
2739

2840
commit: update clean all
29-
cvs commit -m 'Generated. Do not edit!' Overview.html
41+
-hg commit -m 'Generated. Do not edit!' Overview.html
42+
hg push
3043

3144
update:
32-
cvs update
45+
hg pull -u
3346

3447
clean:
35-
rm Overview.html
48+
-rm Overview.html
3649

3750

3851

0 commit comments

Comments
 (0)