Skip to content

Commit 8f0f4b3

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

1 file changed

Lines changed: 26 additions & 8 deletions

File tree

css3-animations/Makefile

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,33 @@
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 >$@
26+
27+
# For Dispositions of Comments in css3-background:
28+
29+
%.html: %.txt
30+
awk -f issues-txt-to-html.awk $< >$@
1431

1532

1633

@@ -26,13 +43,14 @@ check: Overview.err
2643
# A handy shortcut:
2744

2845
commit: update clean all
29-
cvs commit -m 'Generated. Do not edit!' Overview.html
46+
-hg commit -m 'Generated. Do not edit!' Overview.html
47+
hg push
3048

3149
update:
32-
cvs update
50+
hg pull -u
3351

3452
clean:
35-
rm Overview.html
53+
-rm Overview.html
3654

3755

3856

0 commit comments

Comments
 (0)