#!/bin/sh

#
# This is needed to resolve file name clashes
# of libmad files from CVS with other headers
# of the same names in Qtopia
#

p4 edit ...
cvs up

for file in *.c
do
    echo "fixing $file"
    sed "s/global.h/libmad_global.h/" $file > $file.tmp
    sed "s/version.h/libmad_version.h/" $file.tmp > $file
    sed "s/config.h/libmad_config.h/" $file > $file.tmp
    mv $file.tmp $file
done

mv global.h libmad_global.h
mv version.h libmad_version.h
mv config.h libmad_config.h

