X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zebra%2FMakefile;h=61b34e829c608e8f051eb36dc532d5a3e15c9ef1;hb=c0f88510e668227c3f7445c7dd654d725a5f6886;hp=77e6e684c78b099761cd34fb7252bdb1e7cf077f;hpb=195801971082f60e815580fa171cbe66c964cf16;p=irspy-moved-to-github.git diff --git a/zebra/Makefile b/zebra/Makefile index 77e6e68..61b34e8 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -1,4 +1,13 @@ -# $Id: Makefile,v 1.2 2006-06-20 11:02:58 mike Exp $ + +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 + test: xmllint --noout --schema zeerex-2.0.xsd zeerex.xml @@ -6,6 +15,26 @@ test: terse.properties: pqf.properties sed -n 's/#.*//; s/[ ]*//; s/[ ][ ]*/ /g; /./p' $? > $@ +newdb: + tar xzf ${DUMP_DIR}/${IRSPY_ARCHIVE}${IRSPY_ARCHIVE_EXT} + 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: - terse.properties + rm -f terse.properties + +distclean: clean + rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR} + +help: + @echo "make [ dump | test | newdb | clean | distclean ]"