DUMP_DIR= irspy-dump
ZEBRA_DIR= db
+# debugging
+ZEBRA_TEST_DIR= db-test
+
DATE:= $(shell date '+%Y-%m-%d')
all: help
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
rm -f terse.properties
distclean: clean
- rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR}
+ rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR} ${ZEBRA_DIR}
help:
- @echo "make [ dump | test | newdb | clean | distclean ]"
+ @echo "make [ dump | test | newdb | newdb-test | clean | distclean ]"
# Use the "alvis" filter with config file "filterconf.xml"
recordtype: alvis.filterconf.xml
-database: IR-Explain---1
+database: IR-Explain---2
#database: Default
# where to put registers, and other var content, and how large they may be
-register: db/register:100G
-shadow: db/shadow:100G
-lockdir: db/lock
-keytmpdir: db/tmp
+register: db-test/register:100G
+shadow: db-test/shadow:100G
+lockdir: db-test/lock
+keytmpdir: db-test/tmp
# Permissions for update
perm.anonymous: ra
<serverInfo protocol="SRW/SRU/Z39.50" version="1.1" method="GET/POST">
<host>localhost</host>
- <port>8018</port>
- <database>IR-Explain---1</database>
+ <port>8019</port>
+ <database>IR-Explain---2</database>
</serverInfo>
<databaseInfo>