summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/libmad/fix_headers_problem
blob: 6a5595c73223657b818525361252d265dfc98526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

#
# This is needed to ensure the single build will work
# The names of the header files clash with names of other headers in Qt/Palmtop
#


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