#!/bin/bash

for f in *.cc *.h
do
	echo Translating $f ...
	cat $f | sed "s/lfc\//lfcbase\//" | \
	sed "s/lfcbase\/Document/lfcxml\/Document/" |
	sed "s/lfcbase\/Element/lfcxml\/Element/" |
	sed "s/lfcbase\/XMLSuite/lfcxml\/XMLSuite/" |
	sed "s/lfcbase\/XMLOutStream/lfcxml\/XMLOutStream/" |
	sed "s/lfcbase\/XMLInStream/lfcxml\/XMLInStream/" |
	sed "s/lfcbase\/Attribute/lfcxml\/Attribute/" > tmpfile
	mv tmpfile $f
done