From a91a4f26d2cde19e51447c842f5f71495f197717 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (mars.fritz.box)" Date: Thu, 3 Oct 2013 12:24:33 +0200 Subject: add makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c446424 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +all: check format git +check: + @echo Checking for valid XML + find . -name \*.xml -type f | while read xml; do \ + xmllint "$$xml" >/dev/null; \ + done +format: + @echo Re-Formatting XML files + find . -name \*.xml -type f | while read xml; do \ + xmllint --format "$$xml" >"$$xml.tmp" && \ + mv "$$xml.tmp" "$$xml"; \ + done +git: + git commit -a -m 'Reformatted XML' && \ + git push origin hosts -- cgit v1.2.3