X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zebra%2FMakefile;h=1d4fe1ebc73bff7b5cece75e03ae02839073e350;hb=e254164330c6f7611d8ff59c4ccbbc4d3ae064f3;hp=82dc733cf630b295cf4d1c08c39ef77921018153;hpb=d6e6c56554c1d926e330e90058027738ea510f99;p=irspy-moved-to-github.git diff --git a/zebra/Makefile b/zebra/Makefile index 82dc733..1d4fe1e 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -1,6 +1,11 @@ -IRSPY_ARCHIVE= records-2007-05-01 +IRSPY_ARCHIVE= records-2010-04-06 IRSPY_ARCHIVE_EXT= .tar.gz +DUMP_DIR= irspy-dump +ZEBRA_DIR= db + +# debugging +ZEBRA_TEST_DIR= db-test DATE:= $(shell date '+%Y-%m-%d') @@ -14,12 +19,21 @@ terse.properties: pqf.properties sed -n 's/#.*//; s/[ ]*//; s/[ ][ ]*/ /g; /./p' $? > $@ newdb: - tar xzf ${IRSPY_ARCHIVE} + tar xzf ${DUMP_DIR}/${IRSPY_ARCHIVE}${IRSPY_ARCHIVE_EXT} + mkdir -p ${ZEBRA_DIR}/lock ${ZEBRA_DIR}/register ${ZEBRA_DIR}/shadow ${ZEBRA_DIR}/tmp zebraidx-2.0 init zebraidx-2.0 update zeerex.xml zebraidx-2.0 update ${IRSPY_ARCHIVE} zebraidx-2.0 commit +newdb-test: + tar xzf ${DUMP_DIR}/${IRSPY_ARCHIVE}${IRSPY_ARCHIVE_EXT} + mkdir -p ${ZEBRA_TEST_DIR}/lock ${ZEBRA_TEST_DIR}/register ${ZEBRA_TEST_DIR}/shadow ${ZEBRA_TEST_DIR}/tmp + zebraidx-2.0 init + zebraidx-2.0 update zeerex-test.xml + zebraidx-2.0 update ${IRSPY_ARCHIVE} + zebraidx-2.0 commit + dump: rm -rf records-${DATE}.old -test -e records-${DATE} && mv records-${DATE} records-${DATE}.old @@ -31,8 +45,8 @@ clean: rm -f terse.properties distclean: clean - rm -rf ${IRSPY_ARCHIVE} + rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR} ${ZEBRA_DIR} help: - @echo "make [ test | newdb | clean | distclean ]" + @echo "make [ dump | test | newdb | newdb-test | clean | distclean ]"