public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] data/api:master commit in: files/overlays/, files/mirrors/
@ 2024-07-03  4:03 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-07-03  4:03 UTC (permalink / raw
  To: gentoo-commits

commit:     8957be8dd8dee5a93b1426d94139e4deee0fce9b
Author:     Anton Luka Šijanec <anton <AT> sijanec <DOT> eu>
AuthorDate: Wed Jun 12 18:44:16 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jul  3 04:02:55 2024 +0000
URL:        https://gitweb.gentoo.org/data/api.git/commit/?id=8957be8d

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 <AT> gentoo.org>

 files/mirrors/Makefile  | 2 +-
 files/overlays/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/files/mirrors/Makefile b/files/mirrors/Makefile
index 621742c..def4f4f 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 b6e73eb..2d4886c 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-03  4:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03  4:03 [gentoo-commits] data/api:master commit in: files/overlays/, files/mirrors/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox