Diffstat (limited to 'core/multimedia/opieplayer/libmad/fix_headers_problem') (more/less context) (show whitespace changes)
-rwxr-xr-x | core/multimedia/opieplayer/libmad/fix_headers_problem | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/libmad/fix_headers_problem b/core/multimedia/opieplayer/libmad/fix_headers_problem new file mode 100755 index 0000000..6a5595c --- a/dev/null +++ b/core/multimedia/opieplayer/libmad/fix_headers_problem | |||
@@ -0,0 +1,25 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # | ||
4 | # This is needed to ensure the single build will work | ||
5 | # The names of the header files clash with names of other headers in Qt/Palmtop | ||
6 | # | ||
7 | |||
8 | |||
9 | for file in *.c | ||
10 | do | ||
11 | |||
12 | echo "fixing $file" | ||
13 | sed "s/global.h/libmad_global.h/" $file > $file.tmp | ||
14 | sed "s/version.h/libmad_version.h/" $file.tmp > $file | ||
15 | sed "s/config.h/libmad_config.h/" $file > $file.tmp | ||
16 | mv $file.tmp $file | ||
17 | |||
18 | done | ||
19 | |||
20 | |||
21 | mv global.h libmad_global.h | ||
22 | mv version.h libmad_version.h | ||
23 | mv config.h libmad_config.h | ||
24 | |||
25 | |||