summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-06-12 20:44:16 +0200
committerSam James <sam@gentoo.org>2024-07-03 05:02:55 +0100
commit8957be8dd8dee5a93b1426d94139e4deee0fce9b (patch)
tree941285d7a2f650e41171f76a44014f4685e1747f
parentrepositories: swirl: remove dead links (diff)
downloadapi-8957be8dd8dee5a93b1426d94139e4deee0fce9b.tar.gz
api-8957be8dd8dee5a93b1426d94139e4deee0fce9b.tar.bz2
api-8957be8dd8dee5a93b1426d94139e4deee0fce9b.zip
Makefiles: add XMLLINT_INDENT env var
See discussion in PR https://github.com/gentoo/api-gentoo-org/pull/672. Closes: https://github.com/gentoo/api-gentoo-org/pull/677 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--files/mirrors/Makefile2
-rw-r--r--files/overlays/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/files/mirrors/Makefile b/files/mirrors/Makefile
index 621742c6..def4f4f0 100644
--- a/files/mirrors/Makefile
+++ b/files/mirrors/Makefile
@@ -1,5 +1,5 @@
.%.expected-format.xml: %.xml
- xmllint --format $^ > $@
+ XMLLINT_INDENT=" " xmllint --format $^ > $@
.ONESHELL:
.%.expected-format.xml.ok: SHELL = /bin/bash
diff --git a/files/overlays/Makefile b/files/overlays/Makefile
index b6e73eb8..2d4886c9 100644
--- a/files/overlays/Makefile
+++ b/files/overlays/Makefile
@@ -37,7 +37,7 @@ format: .repositories-expected-format.xml
cmp -s repositories.xml $^ || cp $^ repositories.xml
.repositories-expected-format.xml: repositories.xml
- xmllint --format $^ > $@
+ XMLLINT_INDENT=" " xmllint --format $^ > $@
.ONESHELL:
.repositories-style-ok: SHELL = /bin/bash