https://github.com/quicwg/base-drafts
Tip revision: 95530d91ebe965ae52d569c8f4d42acec0461929 authored by Martin Thomson on 14 October 2017, 04:31:11 UTC
Filter on tags to see if that triggers a build
Filter on tags to see if that triggers a build
Tip revision: 95530d9
Makefile
MD_PREPROCESSOR := sed -e 's/{DATE}/$(shell date '+%Y-%m')/g'
LIBDIR := lib
include $(LIBDIR)/main.mk
$(LIBDIR)/main.mk:
ifneq (,$(shell git submodule status $(LIBDIR) 2>/dev/null))
git submodule sync
git submodule update $(CLONE_ARGS) --init
else
git clone -q --depth 10 $(CLONE_ARGS) \
-b master https://github.com/martinthomson/i-d-template $(LIBDIR)
endif
latest:: lint
.PHONY: lint
lint::
@err=0; for f in draft-*.md ; do \
if cat "$$f" | (l=0; while read -r a; do l=$$(($$l + 1)); echo -E "$$l:$$a"; done) | \
sed -e '1,/--- abstract/d;/^[0-9]*: *|/d' | tr -d '\r' | grep '^[0-9]*:.\{81\}'; then \
echo "$$f contains a line with >80 characters"; err=1; \
fi; \
if cat "$$f" | (l=0; while read -r a; do l=$$(($$l + 1)); echo -E "$$l:$$a"; done) | \
sed -e '/^[0-9]*:~~~/,/^[0-9]*:~~~/p;/^[0-9]*:```/,/^[0-9]*:```/p;d' | \
tr -d '\r' | grep '^[0-9]*:.\{66\}'; then \
echo "$$f contains a figure with >65 characters"; err=1; \
fi; \
done; [ "$$err" -eq 0 ]