allow to override the irspy database on the command line
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 23 Apr 2010 12:17:32 +0000 (14:17 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 23 Apr 2010 12:17:32 +0000 (14:17 +0200)
e.g.: make IRSPY_DATABASE=localhost:8019/IR-Explain---1 dump

zebra/Makefile

index b56e633..ac81b41 100644 (file)
@@ -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