X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=zebra%2FMakefile;h=c6a73cbb467fcfec4d54cdf72a628221cb33c6e7;hp=2c1661988ce9b453883a06f9b67cf570f953d260;hb=bd2f592e1e7cae6c69be6713f0dd2a0d3a210612;hpb=d0b85c294ef2038d9d88cc403a22cd1a4da58991 diff --git a/zebra/Makefile b/zebra/Makefile index 2c16619..c6a73cb 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -46,7 +46,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 $$i; done ) > /dev/null 2>&1 + cd records-${DATE}; find . -name '*.xml' -print0 | \ + xargs -n1 -0 -P4 tidy -xml -i -m -w 140 > /dev/null 2>&1 tar cf - records-${DATE} | gzip > records-${DATE}.tar.gz clean: @@ -60,11 +61,13 @@ stop-zebra: sleep 0.5 -kill -9 `cat ${ZEBRA_PID_FILE}` +check: newdb start-zebra dump stop-zebra distclean + distclean: clean rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR} ${ZEBRA_DIR} ${ZEBRA_TEST_DIR} ${ZEBRA_LOGFILE} help: - @echo "make [ dump | test | newdb | newdb-test ]" + @echo "make [ newdb | newdb-test | dump | check ]" @echo " [ start-zebra | stop-zebra ]" @echo " [ clean | distclean ]"