Skip to content

Instantly share code, notes, and snippets.

@sideshowbarker
Created January 6, 2011 06:08
Show Gist options
  • Save sideshowbarker/767595 to your computer and use it in GitHub Desktop.
Save sideshowbarker/767595 to your computer and use it in GitHub Desktop.
HG=hg
SVN=svn
CURL=curl
PYTHON=python
PATCH=patch
SPLITTER=html5-tools/spec-splitter/spec-splitter.py
SPLITTERFLAGS=--html5lib-serialiser
LOG: index.html $(SPLITTER)
$(PYTHON) $(SPLITTER) $(SPLITTERFLAGS) $< .
touch LOG
index.html: html5-full.html anolis/anolis
$(PYTHON) anolis/anolis \
--parser=lxml.html \
--filter=.impl \
--output-encoding="ascii" \
$< $@
html5-full.html:
$(CURL) http://www.whatwg.org/specs/web-apps/current-work/ > $@
clean:
$(RM) LOG
$(RM) html5-full.html
anolis/anolis:
$(HG) clone http://hg.hoppipolla.co.uk/anolis/
$(PATCH) -p1 -d anolis < patch.anolis
$(SPLITTER):
$(SVN) checkout http://html5.googlecode.com/svn/trunk/ html5-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment