Skip to content

Commit 1bde3e0

Browse files
committed
Added -S to curl to get error message in case of failure.
Rearranged arguments for readability. Don't print "Done" when "all" was made. Different way to ignore exit code of "hg commit."
1 parent 31e23ed commit 1bde3e0

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

css3-layout/Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ cdate = $(shell date +%Y%m%d)
1515

1616
%.html: %.src.html
1717
@echo "Calling post-processor to generate $@..."
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 >$@
18+
@curl -K ~/.curl-w3.org -s -S -F output=html -F file=@$< -F group=CSS \
19+
-F method=file -F date=$(cdate) -F status=$(status) \
20+
http://cgi.w3.org/member-bin/process.cgi >$@
2121
%.err: %.src.html
2222
@echo "Calling post-processor to check $<..."
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 >$@
23+
@curl -K ~/.curl-w3.org -s -S -F output=err -F file=@$< -F group=CSS \
24+
-F method=file -F date=$(cdate) -F status=$(status) \
25+
http://cgi.w3.org/member-bin/process.cgi >$@
2626

2727
# For Dispositions of Comments in css3-background:
2828

@@ -32,7 +32,6 @@ cdate = $(shell date +%Y%m%d)
3232

3333

3434
all: check Overview.html
35-
@echo Done.
3635

3736
check: Overview.err
3837
@cat $<
@@ -43,7 +42,7 @@ check: Overview.err
4342
# A handy shortcut:
4443

4544
commit: update all
46-
-hg commit -m 'Generated. Do not edit!' Overview.html
45+
hg commit -m 'Generated. Do not edit!' Overview.html || true
4746
hg push
4847

4948
update:

0 commit comments

Comments
 (0)