From bc2e4a7c7f83310ff46f1cf489fea0249ef63137 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Mon, 30 Oct 2023 18:45:02 +0100 Subject: depend.xsl: Canonicalise output paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Convert to absolute paths in XSLT, so postprocessing with sed is no longer needed. Signed-off-by: Ulrich Müller --- Makefile | 2 +- depend.xsl | 23 +++++++++++++++-------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 89874ae..e75cbf1 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ appendices/todo-list/index.html: $(XMLS) # Generate the list of dependencies with XSLT, which appears to be a # better tool for this than make. .depend: $(XMLS) eclass-reference/text.xml depend.xsl devbook.xsl - @xsltproc depend.xsl $(XMLS) | sed ':x;s%[^ /]*/\.\./%%;tx' > $@ + @xsltproc depend.xsl $(XMLS) > $@ install: all set -e; \ diff --git a/depend.xsl b/depend.xsl index abb139a..15c5e15 100644 --- a/depend.xsl +++ b/depend.xsl @@ -1,8 +1,9 @@ + extension-element-prefixes="str exslt xsl" + exclude-result-prefixes="str exslt xsl"> @@ -20,12 +21,18 @@ - - + + + + + + + + + + + text.xml -- cgit v1.2.3-65-gdbad