From: Wolfram Schneider Date: Fri, 23 Apr 2010 12:17:32 +0000 (+0200) Subject: allow to override the irspy database on the command line X-Git-Tag: CPAN-v1.02~54^2~46 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=d02f0543f5d276a5cc3c1cc180c1fbf49e5baf59;p=irspy-moved-to-github.git allow to override the irspy database on the command line e.g.: make IRSPY_DATABASE=localhost:8019/IR-Explain---1 dump --- 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