Skip to content

Commit 8f1054d

Browse files
committed
[css3-layout] Makefile can now also make .html from .bs with Bikeshed.
1 parent 783f229 commit 8f1054d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

css-template/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ status ?=
1818
group ?= CSS
1919
opts ?=
2020
target ?= Overview
21+
markup ?= html
2122

2223
%.html: %.src.html
2324
@echo "Calling post-processor to generate $@..."
@@ -29,6 +30,12 @@ target ?= Overview
2930
@curl -K ~/.curl-w3.org -s -S -F output=err -F file=@$< \
3031
-F group=$(group) -F method=file -F date=$(cdate) -F status=$(status) \
3132
$(opts) -o $@ https://www.w3.org/Style/Group/process.cgi
33+
%.html: %.bs
34+
curl -s -L -F file=@$< -F time=$(cdate) -F output=html \
35+
-F paragraph=$(markup) $(opts) -o $@ http://api.csswg.org/bikeshed/
36+
%.err: %.bs
37+
curl -s -L -F file=@$< -F time=$(cdate) -F output=err \
38+
-F paragraph=$(markup) $(opts) -o $@ http://api.csswg.org/bikeshed/
3239

3340
# For Dispositions of Comments in css3-background:
3441
%.html: %.txt; awk -f issues-txt-to-html.awk $< >$@
@@ -48,7 +55,7 @@ all: check $(target).html
4855
# egrep will exit with a zero exit code if there is anything left
4956
check: $(target).err
5057
@cat $<
51-
@if egrep -v '^(Warning:|\(Processed in .* seconds\)|No errors)' $<;\
58+
@if egrep -qv '^(Warning:|\(Processed in .* seconds\)|No errors)' $<;\
5259
then false; else true; fi
5360

5461

0 commit comments

Comments
 (0)