-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (23 loc) · 915 Bytes
/
Makefile
File metadata and controls
26 lines (23 loc) · 915 Bytes
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
SHELL=/bin/bash -o pipefail
.PHONY: local remote deploy
remote: index.bs
@ (HTTP_STATUS=$$(curl https://www.w3.org/publications/spec-generator/ \
--output index.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] \
-F type=bikeshed-spec \
-F output=html) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat index.html; echo ""; \
rm -f index.html; \
exit 22 \
);
local: index.bs
bikeshed spec index.bs index.html --md-Text-Macro="COMMIT-SHA LOCAL-COPY"
deploy: index.bs
curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh
EXTRA_FILES="demos/* demos/**/*" \
bash ./deploy.sh