#!/bin/sh

BASEURL_HTML="http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A1999.03.0067"
BASEURL_XML="http://www.perseus.tufts.edu/hopper/xmlchunk?doc=Perseus%3Atext%3A1999.03.0067"

JARDIR="../../misc"
CLASSPATH="../../build:${JARDIR}/commons-httpclient-3.1.jar:${JARDIR}/commons-logging-1.1.1.jar:${JARDIR}/commons-codec-1.4.jar"
WAITSEC=2

ENTRYNAMES=dyceentries.txt
###java -cp ${CLASSPATH} clsepw.util.WgetEntryNames ${BASEURL_HTML} ${WAITSEC} > ${ENTRYNAMES}

OUTPUT=dyce.xml
###java -cp ${CLASSPATH} clsepw.util.WgetEntries ${BASEURL_XML} ${ENTRYNAMES} ${WAITSEC} > ${OUTPUT}
java -cp ${CLASSPATH} clsepw.util.WgetEntries ${BASEURL_XML} ${ENTRYNAMES} ${WAITSEC} chaps2 >> ${OUTPUT}
