3
0
Fork 0
forked from mirrors/nixpkgs

nixos manual Makefile: improve purity

And be quiet when building/downloading the required tools.
This commit is contained in:
Vladimír Čunát 2019-03-22 14:47:47 +01:00
parent 4c3ec0e325
commit 1ad3f34a99
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -6,13 +6,14 @@ debug: generated manual-combined.xml
manual-combined.xml: generated *.xml **/*.xml
rm -f ./manual-combined.xml
nix-shell --packages xmloscopy \
nix-shell --pure -Q --packages xmloscopy \
--run "xmloscopy --docbook5 ./manual.xml ./manual-combined.xml"
.PHONY: format
format:
find ../../ -iname '*.xml' -type f -print0 | xargs -0 -I{} -n1 \
xmlformat --config-file "../xmlformat.conf" -i {}
nix-shell --pure -Q --packages xmlformat \
--run "find ../../ -iname '*.xml' -type f -print0 | xargs -0 -I{} -n1 \
xmlformat --config-file '../xmlformat.conf' -i {}"
.PHONY: fix-misc-xml
fix-misc-xml: