Use newer archive.
[irspy-moved-to-github.git] / zebra / Makefile
index 990daf8..9446bd1 100644 (file)
@@ -1,4 +1,4 @@
-IRSPY_ARCHIVE=         records-2014-11-24
+IRSPY_ARCHIVE=         records-2014-12-15
 IRSPY_ARCHIVE_EXT=     .tar.gz
 DUMP_DIR=              irspy-dump
 ZEBRA_DIR=             db
@@ -45,7 +45,8 @@ dump:
        -test -e records-${DATE} && mv records-${DATE} records-${DATE}.old
        mkdir records-${DATE}
        cd records-${DATE} && ../../bin/irspy-dump.pl ${IRSPY_DATABASE}
-       cd records-${DATE}; for i in *.xml; do tidy -xml -i -m -w 140 -quiet $$i; echo -n .; done
+       #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: