#!/bin/sh
[ -d main.linuxfocus.org ] && rm -rf main.linuxfocus.org
for f in resdb.txt issuedb.txt xmldb.dtd xmldb_en.xml textdb_person.txt textdb_person.xslt textdb.xslt textdb.txt talkback.xslt talkback.txt resdb_newarticles.xml  ; do
	[ -f "$f" ] && mv -f $f $f.bak
	wget -v http://main.linuxfocus.org/common/db/$f || exit 1
done
mv main.linuxfocus.org/common/db/* .
[ -d main.linuxfocus.org ] && rm -rf main.linuxfocus.org

