Revision 4f6006440f085c84bda5c2676d5dfbe27b06440a authored by sabine seifert on 24 September 2022, 13:15:56 UTC, committed by sabine seifert on 24 September 2022, 13:15:56 UTC
1 parent f19599e
Raw File
tei-database-rebuild
#!/bin/sh
# Rebuild TEI eXist database
# Sebastian Rahtz
# 2005-04-22
# License: GPL

X=/usr/share/xml/tei/xquery
S=/usr/share/xml/tei/odd

HOSTNAME=`hostname`
HOST=localhost
PORT=8080
WEBAPP=exist

case $HOSTNAME in
   teivm.village.Virginia.EDU) HOST=www.tei-c.org;PORT=8040;WEBAPP=exist;;
esac
OPTS="--webapp=$WEBAPP --port=$PORT --host=localhost "
echo Using $HOST:$PORT/$WEBAPP

cd /tmp
perl $X/addtoexist.pl $OPTS --remove=/db/TEI
perl $X/addtoexist.pl $OPTS --remove=/db/system/config/db/TEI/index.xconf
xsltproc -o tei.xml $X/simplify.xsl  $S/Source/guidelines-en.xml
perl $X/addtoexist.pl $OPTS -c /db/system/config/db/TEI -s $X/index.xconf
perl $X/addtoexist.pl $OPTS -c /db/TEI -s tei.xml
rm tei.xml
back to top