From d02f0543f5d276a5cc3c1cc180c1fbf49e5baf59 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 23 Apr 2010 14:17:32 +0200 Subject: [PATCH] allow to override the irspy database on the command line e.g.: make IRSPY_DATABASE=localhost:8019/IR-Explain---1 dump --- zebra/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/Makefile b/zebra/Makefile index b56e633..ac81b41 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -5,6 +5,7 @@ DUMP_DIR= irspy-dump ZEBRA_DIR= db ZEBRAIDX= zebraidx-2.0 ZEBRAIDX_TEST= zebraidx-2.0 -c zebra-test.cfg +IRSPY_DATABASE= localhost:8018/IR-Explain---1 # debugging ZEBRA_TEST_DIR= db-test @@ -41,7 +42,7 @@ dump: rm -rf records-${DATE}.old -test -e records-${DATE} && mv records-${DATE} records-${DATE}.old mkdir records-${DATE} - cd records-${DATE} && ../../bin/irspy-dump.pl localhost:8018/IR-Explain---1 + 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 tar cf - records-${DATE} | gzip > records-${DATE}.tar.gz -- 1.7.10.4