Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / media / liboggplay / update.sh
blob0943536ada210eea0ba6e1132b22c9f42aa36f5b
1 # Usage: ./update.sh <oggplay_src_directory>
3 # Copies the needed files from a directory containing the original
4 # liboggplay source that we need for the Mozilla HTML5 media support.
5 sed s/\#define\ __SSE2__\ 1//g $1/config.h >./src/liboggplay/config.h
6 echo "#undef HAVE_GLUT" >>./src/liboggplay/config.h
7 cp $1/include/oggplay/oggplay_callback_info.h ./include/oggplay/oggplay_callback_info.h
8 cp $1/include/oggplay/oggplay_query.h ./include/oggplay/oggplay_query.h
9 cp $1/include/oggplay/oggplay_seek.h ./include/oggplay/oggplay_seek.h
10 cp $1/include/oggplay/oggplay_enums.h ./include/oggplay/oggplay_enums.h
11 cp $1/include/oggplay/oggplay_tools.h ./include/oggplay/oggplay_tools.h
12 cp $1/win32/config_win32.h ./include/oggplay/config_win32.h
13 cp $1/include/oggplay/oggplay.h ./include/oggplay/oggplay.h
14 cp $1/include/oggplay/oggplay_reader.h ./include/oggplay/oggplay_reader.h
15 cp $1/README ./README
16 cp $1/COPYING ./COPYING
17 cp $1/src/liboggplay/oggplay_buffer.c ./src/liboggplay/oggplay_buffer.c
18 cp $1/src/liboggplay/oggplay_tcp_reader.h ./src/liboggplay/oggplay_tcp_reader.h
19 cp $1/src/liboggplay/oggplay_callback_info.c ./src/liboggplay/oggplay_callback_info.c
20 cp $1/src/liboggplay/oggplay_tools.c ./src/liboggplay/oggplay_tools.c
21 cp $1/src/liboggplay/oggplay_yuv2rgb.c ./src/liboggplay/oggplay_yuv2rgb.c
22 cp $1/src/liboggplay/oggplay_seek.c ./src/liboggplay/oggplay_seek.c
23 cp $1/src/liboggplay/oggplay_buffer.h ./src/liboggplay/oggplay_buffer.h
24 cp $1/src/liboggplay/oggplay_file_reader.c ./src/liboggplay/oggplay_file_reader.c
25 cp $1/src/liboggplay/oggplay_data.h ./src/liboggplay/oggplay_data.h
26 cp $1/src/liboggplay/oggplay_callback.c ./src/liboggplay/oggplay_callback.c
27 cp $1/src/liboggplay/oggplay_file_reader.h ./src/liboggplay/oggplay_file_reader.h
28 cp $1/src/liboggplay/std_semaphore.h ./src/liboggplay/std_semaphore.h
29 cp $1/src/liboggplay/oggplay.c ./src/liboggplay/oggplay.c
30 cp $1/src/liboggplay/oggplay_callback.h ./src/liboggplay/oggplay_callback.h
31 cp $1/src/liboggplay/oggplay_tcp_reader.c ./src/liboggplay/oggplay_tcp_reader.c
32 cp $1/src/liboggplay/oggplay_query.c ./src/liboggplay/oggplay_query.c
33 sed s/\#include\ \"config_win32.h\"//g $1/src/liboggplay/oggplay_private.h >./src/liboggplay/oggplay_private.h1
34 sed s/\#include\ \<config.h\>/\#ifdef\ WIN32\\n\#include\ \"config_win32.h\"\\n\#else\\n\#include\ \<config.h\>\\n\#endif/g ./src/liboggplay/oggplay_private.h1 >./src/liboggplay/oggplay_private.h
35 rm ./src/liboggplay/oggplay_private.h1
36 sed s/\#ifdef\ HAVE_INTTYPES_H/\#if\ HAVE_INTTYPES_H/g $1/src/liboggplay/oggplay_data.c >./src/liboggplay/oggplay_data.c
37 cd ./src/liboggplay
38 patch <../../yuv2rgb-vanilla-fix.patch
39 cd ../..