-
Notifications
You must be signed in to change notification settings - Fork 77
/
Makefile
25 lines (22 loc) · 887 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
SHELL=/bin/bash -o pipefail
.PHONY: local remote deploy
remote: encoding.bs
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
--output encoding.html \
--write-out "%{http_code}" \
--header "Accept: text/plain, text/html" \
-F die-on=warning \
-F md-Text-Macro="COMMIT-SHA LOCAL COPY" \
-F [email protected]) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat encoding.html; echo ""; \
rm -f encoding.html; \
exit 22 \
);
local: encoding.bs
bikeshed spec encoding.bs encoding.html --md-Text-Macro="COMMIT-SHA LOCAL-COPY"
deploy: encoding.bs
curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh
EXTRA_FILES="*.txt *.json *.css" \
POST_BUILD_STEP='python visualize.py "$$DIR/"' \
bash ./deploy.sh