forked from whatwg/dom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (23 loc) · 869 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SHELL=/bin/bash -o pipefail
.PHONY: local remote deploy review
remote: dom.bs
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
--output dom.html \
--write-out "%{http_code}" \
--header "Accept: text/plain, text/html" \
-F die-on=warning \
-F md-Text-Macro="COMMIT-SHA LOCAL COPY" \
-F file=@dom.bs) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat dom.html; echo ""; \
rm -f dom.html; \
exit 22 \
);
local: dom.bs
bikeshed spec dom.bs dom.html --md-Text-Macro="COMMIT-SHA LOCAL COPY"
deploy: dom.bs
curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh
bash ./deploy.sh
review: dom.bs
curl --remote-name --fail https://resources.whatwg.org/build/review.sh
bash ./review.sh