|
1 # Usage: /bin/sh update.sh <vorbis_src_directory> |
|
2 # |
|
3 # Copies the needed files from a directory containing the original |
|
4 # libvorbis source that we need for the Mozilla HTML5 media support. |
|
5 mkdir -p ./lib |
|
6 mkdir -p ./include/vorbis |
|
7 cp $1/lib/envelope.h ./lib/envelope.h |
|
8 cp $1/lib/lpc.h ./lib/lpc.h |
|
9 cp $1/lib/highlevel.h ./lib/highlevel.h |
|
10 cp $1/lib/floor0.c ./lib/vorbis_floor0.c |
|
11 cp $1/lib/lookup_data.h ./lib/lookup_data.h |
|
12 cp $1/lib/psy.c ./lib/vorbis_psy.c |
|
13 cp $1/lib/window.c ./lib/vorbis_window.c |
|
14 cp $1/lib/info.c ./lib/vorbis_info.c |
|
15 cp $1/lib/res0.c ./lib/vorbis_res0.c |
|
16 cp $1/lib/lookup.h ./lib/lookup.h |
|
17 cp $1/lib/lookup.c ./lib/vorbis_lookup.c |
|
18 sed s/lookup\.c/vorbis_lookup\.c/g $1/lib/lsp.c >./lib/vorbis_lsp.c |
|
19 cp $1/lib/codebook.h ./lib/codebook.h |
|
20 cp $1/lib/registry.c ./lib/vorbis_registry.c |
|
21 cp $1/lib/smallft.h ./lib/smallft.h |
|
22 cp $1/lib/synthesis.c ./lib/vorbis_synthesis.c |
|
23 cp $1/lib/masking.h ./lib/masking.h |
|
24 cp $1/lib/window.h ./lib/window.h |
|
25 cp $1/lib/scales.h ./lib/scales.h |
|
26 cp $1/lib/lsp.h ./lib/lsp.h |
|
27 cp $1/lib/analysis.c ./lib/vorbis_analysis.c |
|
28 cp $1/lib/misc.h ./lib/misc.h |
|
29 cp $1/lib/floor1.c ./lib/vorbis_floor1.c |
|
30 cp $1/lib/lpc.c ./lib/vorbis_lpc.c |
|
31 cp $1/lib/backends.h ./lib/backends.h |
|
32 cp $1/lib/sharedbook.c ./lib/vorbis_sharedbook.c |
|
33 cp $1/lib/mapping0.c ./lib/vorbis_mapping0.c |
|
34 cp $1/lib/smallft.c ./lib/vorbis_smallft.c |
|
35 cp $1/lib/psy.h ./lib/psy.h |
|
36 cp $1/lib/bitrate.h ./lib/bitrate.h |
|
37 cp $1/lib/envelope.c ./lib/vorbis_envelope.c |
|
38 cp $1/lib/os.h ./lib/os.h |
|
39 cp $1/lib/mdct.c ./lib/vorbis_mdct.c |
|
40 cp $1/lib/codec_internal.h ./lib/codec_internal.h |
|
41 cp $1/lib/mdct.h ./lib/mdct.h |
|
42 cp $1/lib/registry.h ./lib/registry.h |
|
43 cp $1/lib/codebook.c ./lib/vorbis_codebook.c |
|
44 cp $1/lib/bitrate.c ./lib/vorbis_bitrate.c |
|
45 cp $1/lib/block.c ./lib/vorbis_block.c |
|
46 cp $1/include/vorbis/codec.h ./include/vorbis/codec.h |
|
47 cp $1/todo.txt ./todo.txt |
|
48 cp $1/COPYING ./COPYING |
|
49 cp $1/README ./README |
|
50 cp $1/AUTHORS ./AUTHORS |
|
51 |
|
52 # Encoder support |
|
53 cp $1/lib/vorbisenc.c ./lib/vorbisenc.c |
|
54 cp $1/include/vorbis/vorbisenc.h ./include/vorbis/vorbisenc.h |
|
55 mkdir -p ./lib/modes |
|
56 cp $1/lib/modes/setup_44.h ./lib/modes/setup_44.h |
|
57 cp $1/lib/modes/setup_44u.h ./lib/modes/setup_44u.h |
|
58 cp $1/lib/modes/setup_44p51.h ./lib/modes/setup_44p51.h |
|
59 cp $1/lib/modes/setup_32.h ./lib/modes/setup_32.h |
|
60 cp $1/lib/modes/setup_8.h ./lib/modes/setup_8.h |
|
61 cp $1/lib/modes/setup_11.h ./lib/modes/setup_11.h |
|
62 cp $1/lib/modes/setup_16.h ./lib/modes/setup_16.h |
|
63 cp $1/lib/modes/setup_22.h ./lib/modes/setup_22.h |
|
64 cp $1/lib/modes/setup_X.h ./lib/modes/setup_X.h |
|
65 cp $1/lib/modes/floor_all.h ./lib/modes/floor_all.h |
|
66 cp $1/lib/modes/residue_44.h ./lib/modes/residue_44.h |
|
67 cp $1/lib/modes/residue_44u.h ./lib/modes/residue_44u.h |
|
68 cp $1/lib/modes/residue_44p51.h ./lib/modes/residue_44p51.h |
|
69 cp $1/lib/modes/residue_8.h ./lib/modes/residue_8.h |
|
70 cp $1/lib/modes/residue_16.h ./lib/modes/residue_16.h |
|
71 cp $1/lib/modes/psych_44.h ./lib/modes/psych_44.h |
|
72 cp $1/lib/modes/psych_8.h ./lib/modes/psych_8.h |
|
73 cp $1/lib/modes/psych_11.h ./lib/modes/psych_11.h |
|
74 cp $1/lib/modes/psych_16.h ./lib/modes/psych_16.h |
|
75 mkdir -p ./lib/books/coupled |
|
76 mkdir -p ./lib/books/floor |
|
77 mkdir -p ./lib/books/uncoupled |
|
78 cp $1/lib/books/coupled/res_books_stereo.h ./lib/books/coupled/ |
|
79 cp $1/lib/books/coupled/res_books_51.h ./lib/books/coupled/ |
|
80 cp $1/lib/books/floor/floor_books.h ./lib/books/floor/ |
|
81 cp $1/lib/books/uncoupled/res_books_uncoupled.h ./lib/books/uncoupled/ |
|
82 |
|
83 # Add any patches against upstream here. |