X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=zebra%2FMakefile;h=be9f20e1a4141e799a8a2fe0f8d2ef2c90b48907;hb=5f5ded4c13200abdcb588bfda4b3303e34ef9e64;hp=09602b3cfeb233ec1c5e7cf8b99d767067ee8c6f;hpb=9b37f461bfc578baad03482677015b3524f71404;p=irspy-moved-to-github.git diff --git a/zebra/Makefile b/zebra/Makefile index 09602b3..be9f20e 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -1,6 +1,10 @@ -IRSPY_ARCHIVE= records-2007-05-01 +IRSPY_ARCHIVE= records-2010-04-06 IRSPY_ARCHIVE_EXT= .tar.gz +DUMP_DIR= irspy-dump +ZEBRA_DIR= db + +DATE:= $(shell date '+%Y-%m-%d') all: help @@ -12,18 +16,26 @@ 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 +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 irspy.indexdata.com:8018/IR-Explain---1 + tar cfz records-${DATE} records-${DATE} + clean: rm -f terse.properties distclean: clean - rm -rf ${IRSPY_ARCHIVE} + rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR} help: - @echo "make [ test | newdb | clean | distclean ]" + @echo "make [ dump | test | newdb | clean | distclean ]"