#!/bin/sh
# This is a wrapper scripts that updates all low level database files
# from the master file xmldb_en.xml
#
# Note: Before running this you should check the new entries in
# resdb_newarticles.xml and copy them over to xmldb_en.xml
#
dir=`dirname $0`
cd $dir
for prg in validate_sh xml2talkback_sh xml2textdb_sh xml2textdb_person_sh textdb2issue_pl ; do
	echo "running now ./$prg ..."
	./$prg || exit 1
done
cat << ENDE


now you can upload:

common/db/issuedbshort.txt
common/db/issuedb.txt
common/db/talkback.txt
common/db/talkbacknew.txt
common/db/textdb_person.txt
common/db/textdb.txt
common/db/xmldb_en.xml
common/db/resdb_newarticles.xml
ENDE
