From dcfbf4aafc0857477f9970b8e825b30a3aa624bb Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 12 Jan 2015 14:26:22 +0000 Subject: [PATCH] validate dump output with xmllint --- zebra/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/zebra/Makefile b/zebra/Makefile index 889a270..0ddd342 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -46,6 +46,7 @@ dump: mkdir records-${DATE} cd records-${DATE} && ../../bin/irspy-dump.pl ${IRSPY_DATABASE} #cd records-${DATE}; for i in *.xml; do echo -n "$$i "; tidy -xml -i -m -w 140 $$i 2>&1 | sed 1q; done + find records-${DATE} -name '*.xml' -print0 | xargs -n16 -0 -P4 xmllint -format >/dev/null tar cf - records-${DATE} | gzip > records-${DATE}.tar.gz clean: -- 1.7.10.4