From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C1A05158089 for ; Thu, 2 Nov 2023 17:06:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D7112BC013; Thu, 2 Nov 2023 17:06:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 789172BC013 for ; Thu, 2 Nov 2023 17:06:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8093E335D27 for ; Thu, 2 Nov 2023 17:06:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9B999AA2 for ; Thu, 2 Nov 2023 17:06:07 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1698944591.bc2e4a7c7f83310ff46f1cf489fea0249ef63137.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: Makefile depend.xsl X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: bc2e4a7c7f83310ff46f1cf489fea0249ef63137 X-VCS-Branch: master Date: Thu, 2 Nov 2023 17:06:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e48b9860-f5a3-423a-bec3-7676ceeb551b X-Archives-Hash: 6ca5e9d60a8f5152bd297e151762f70a commit: bc2e4a7c7f83310ff46f1cf489fea0249ef63137 Author: Ulrich Müller gentoo org> AuthorDate: Mon Oct 30 17:45:02 2023 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Thu Nov 2 17:03:11 2023 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=bc2e4a7c depend.xsl: Canonicalise output paths Convert to absolute paths in XSLT, so postprocessing with sed is no longer needed. Signed-off-by: Ulrich Müller gentoo.org> 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