diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-01-10 14:26:28 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-01-10 14:26:28 +0000 |
commit | feaf3e579e184119f851954f637ac78f734a3231 (patch) | |
tree | ea72af95c36591571f68f81c6754614b862c0278 /Makefile | |
parent | 42b8c452322fb1e2fd6055ef0f0413f5ee3878bc (diff) |
When producing introspect XML, remove unnecessary namespace using perl one-liner to be pedantically valid
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,6 +3,7 @@ all: XSLTPROC = xsltproc --xinclude --nonet CANONXML = xmllint --nsclean --noblanks --c14n --nonet XML_LINEBREAKS = perl -pe 's/>/>\n/g' +DROP_NAMESPACE = perl -pe '$$hash = chr(35); s{xmlns:tp="http://telepathy\.freedesktop\.org/wiki/DbusSpec$${hash}extensions-v0"}{}g' XMLS = $(wildcard spec/*.xml) INTERFACE_XMLS = $(filter-out spec/all%.xml,$(filter-out spec/errors%.xml,$(XMLS))) @@ -85,10 +86,10 @@ test/output/errors.h: test/input/errors.xml tools/c-errors-enum-generator.xsl $(INTROSPECT): introspect/%.xml: spec/%.xml tools/spec-to-introspect.xsl install -d introspect - $(XSLTPROC) tools/spec-to-introspect.xsl $< > $@ + $(XSLTPROC) tools/spec-to-introspect.xsl $< | $(DROP_NAMESPACE) > $@ $(TEST_INTROSPECT): $(TEST_INTERFACE_XMLS) tools/spec-to-introspect.xsl install -d test/output - $(XSLTPROC) tools/spec-to-introspect.xsl $< > $@ + $(XSLTPROC) tools/spec-to-introspect.xsl $< | $(DROP_NAMESPACE) > $@ $(INTERFACE_PY): telepathy/_generated/%.py: spec/%.xml tools/spec-to-python.xsl install -d telepathy/_generated |