forked from WICG/floc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 641 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 641 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
27
SHELL=/bin/bash
local: floc.bs
bikeshed --die-on=warning spec floc.bs floc.html
floc.html: floc.bs
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
--output floc.html \
--write-out "%{http_code}" \
--header "Accept: text/plain, text/html" \
-F die-on=warning \
-F file=@floc.bs) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat floc.html; echo ""; \
rm -f floc.html; \
exit 22 \
);
remote: floc.html
ci: floc.bs
mkdir -p out
make remote
mv floc.html out/index.html
clean:
rm floc.html