X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=zebra%2FMakefile;h=2b1aef562cb9f992c38867337b09373538976636;hp=481a12584bc28ebf48b0ef109fa334854af72c3b;hb=b3ffdc8a7b528710b4f6ed97fd055d91648f06c5;hpb=96dd086f79c81f9e311d14a0ae9ffa40851e97ae diff --git a/zebra/Makefile b/zebra/Makefile index 481a125..2b1aef5 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -1,4 +1,11 @@ -# $Id: Makefile,v 1.4 2007-09-13 12:19:58 mike Exp $ + +IRSPY_ARCHIVE= records-2007-05-01 +IRSPY_ARCHIVE_EXT= .tar.gz + +DATE:= $(shell date '+%Y-%m-%d') + +all: help + test: xmllint --noout --schema zeerex-2.0.xsd zeerex.xml @@ -7,12 +14,25 @@ terse.properties: pqf.properties sed -n 's/#.*//; s/[ ]*//; s/[ ][ ]*/ /g; /./p' $? > $@ newdb: - tar xzf records-2007-05-01.tar.gz + tar xzf ${IRSPY_ARCHIVE} zebraidx-2.0 init zebraidx-2.0 update zeerex.xml - zebraidx-2.0 update records-2007-05-01 + 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} + +help: + @echo "make [ dump | test | newdb | clean | distclean ]" +