From 79e557bbe83845df21575b525ea8aadbea29f6ce Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 30 Oct 2012 13:49:02 +0000 Subject: Move WebIDL to be available for all binding types not just jsapi (spidermonkey) Add conversion message display --- javascript/WebIDL/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 javascript/WebIDL/Makefile (limited to 'javascript/WebIDL/Makefile') diff --git a/javascript/WebIDL/Makefile b/javascript/WebIDL/Makefile new file mode 100644 index 000000000..77d54e21e --- /dev/null +++ b/javascript/WebIDL/Makefile @@ -0,0 +1,38 @@ +#!/bin/make +# +# Create the WebIDL for core DOM and HTML spec directly from +# downloaded specifications. The resulting IDL is pretty close but +# carries the example text etc. and should be manually cleaned up and +# tagged with the retrival date and source URL +# +# needs debin packages: curl w3m tidy html-xml-utils +# +# Copyright 2012 Vincent Sanders +# MIT licenced + +.PHONY:all clean + +all: dom.idl html.idl + +.INTERMEDIATE:dom-spec.html dom-spec.xml dom-idl.html html-spec.html html-spec.xml html-idl.html + + +dom-spec.html: + curl -s http://dom.spec.whatwg.org/ -o $@ + +html-spec.html: + curl -s http://www.whatwg.org/specs/web-apps/current-work/ -o $@ + +%-spec.xml: %-spec.html + -tidy -q -f $@.errors --new-blocklevel-tags header,hgroup,figure -o $@ -asxml $< + +%-idl.html: %-spec.xml + hxselect pre.idl < $< > $@ + +%.idl: %-idl.html + cat $< | w3m -dump -T text/html >$@ + + + +clean: + ${RM} dom.idl html.idl dom-spec.html dom-spec.xml dom-idl.html html-spec.html html-spec.xml html-idl.html -- cgit v1.2.3