bug 469718 - followup to avoid accessing document properties outside a browser. r=bc
[mozilla-central.git] / media / libtheora / update.sh
bloba959acc00e598e14d9be3fad67f556ca95901ab8
1 # Usage: ./update.sh <theora_src_directory>
3 # Copies the needed files from a directory containing the original
4 # libtheora source that we need for the Mozilla HTML5 media support.
5 sed s/\#define\ OC_X86ASM//g $1/config.h >./lib/config.h
6 sed s/\#define\ USE_ASM//g ./lib/config.h >./lib/config.h2
7 sed s/\#define\ THEORA_DISABLE_ENCODE//g ./lib/config.h2 >./lib/config.h
8 rm ./lib/config.h2
9 cp ./lib/config.h ./include/theora/config.h
10 cp $1/LICENSE ./LICENSE
11 cp $1/CHANGES ./CHANGES
12 cp $1/COPYING ./COPYING
13 cp $1/README ./README
14 cp $1/AUTHORS ./AUTHORS
15 cp $1/lib/cpu.c ./lib/cpu.c
16 cp $1/lib/cpu.h ./lib/cpu.h
17 cp $1/lib/dec/ocintrin.h ./lib/dec/ocintrin.h
18 cp $1/lib/dec/huffdec.c ./lib/dec/huffdec.c
19 cp $1/lib/dec/apiwrapper.h ./lib/dec/apiwrapper.h
20 cp $1/lib/dec/x86/mmxfrag.c ./lib/dec/x86/mmxfrag.c
21 cp $1/lib/dec/x86/x86state.c ./lib/dec/x86/x86state.c
22 cp $1/lib/dec/x86/x86int.h ./lib/dec/x86/x86int.h
23 cp $1/lib/dec/x86/mmxstate.c ./lib/dec/x86/mmxstate.c
24 cp $1/lib/dec/x86/mmxidct.c ./lib/dec/x86/mmxidct.c
25 cp $1/lib/dec/x86_vc/mmxfrag.c ./lib/dec/x86_vc/mmxfrag.c
26 cp $1/lib/dec/x86_vc/mmxidct.c ./lib/dec/x86_vc/mmxidct.c
27 cp $1/lib/dec/x86_vc/mmxloopfilter.c ./lib/dec/x86_vc/mmxloopfilter.c
28 cp $1/lib/dec/x86_vc/mmxstate.c ./lib/dec/x86_vc/mmxstate.c
29 cp $1/lib/dec/x86_vc/x86int.h ./lib/dec/x86_vc/x86int.h
30 cp $1/lib/dec/x86_vc/x86state.c ./lib/dec/x86_vc/x86state.c
31 cp $1/lib/dec/bitpack.h ./lib/dec/bitpack.h
32 cp $1/lib/dec/quant.c ./lib/dec/quant.c
33 cp $1/lib/dec/bitpack.c ./lib/dec/bitpack.c
34 cp $1/lib/dec/internal.c ./lib/dec/internal.c
35 cp $1/lib/dec/huffdec.h ./lib/dec/huffdec.h
36 cp $1/lib/dec/dct.h ./lib/dec/dct.h
37 cp $1/lib/dec/idct.h ./lib/dec/idct.h
38 cp $1/lib/dec/decinfo.c ./lib/dec/decinfo.c
39 cp $1/lib/dec/decapiwrapper.c ./lib/dec/decapiwrapper.c
40 cp $1/lib/dec/idct.c ./lib/dec/idct.c
41 cp $1/lib/dec/state.c ./lib/dec/state.c
42 cp $1/lib/dec/info.c ./lib/dec/info.c
43 cp $1/lib/dec/huffman.h ./lib/dec/huffman.h
44 cp $1/lib/dec/decint.h ./lib/dec/decint.h
45 cp $1/lib/dec/fragment.c ./lib/dec/fragment.c
46 cp $1/lib/dec/apiwrapper.c ./lib/dec/apiwrapper.c
47 cp $1/lib/dec/decode.c ./lib/dec/decode.c
48 cp $1/lib/dec/dequant.c ./lib/dec/dequant.c
49 cp $1/lib/dec/quant.h ./lib/dec/quant.h
50 cp $1/lib/dec/dequant.h ./lib/dec/dequant.h
51 cp $1/lib/internal.h ./lib/internal.h
52 cp $1/include/theora/theora.h ./include/theora/theora.h
53 cp $1/include/theora/theoradec.h ./include/theora/theoradec.h
54 cp $1/include/theora/codec.h ./include/theora/codec.h
55 patch -p3 <455357_wince_local_variable_macro_clash_patch
56 patch -p3 <bug498815.patch
57 patch -p3 <bug498824.patch
58 patch -p0 <bug498770.patch
59 patch -p3 <bug504613.patch