1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvorbis/update.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,83 @@ 1.4 +# Usage: /bin/sh update.sh <vorbis_src_directory> 1.5 +# 1.6 +# Copies the needed files from a directory containing the original 1.7 +# libvorbis source that we need for the Mozilla HTML5 media support. 1.8 +mkdir -p ./lib 1.9 +mkdir -p ./include/vorbis 1.10 +cp $1/lib/envelope.h ./lib/envelope.h 1.11 +cp $1/lib/lpc.h ./lib/lpc.h 1.12 +cp $1/lib/highlevel.h ./lib/highlevel.h 1.13 +cp $1/lib/floor0.c ./lib/vorbis_floor0.c 1.14 +cp $1/lib/lookup_data.h ./lib/lookup_data.h 1.15 +cp $1/lib/psy.c ./lib/vorbis_psy.c 1.16 +cp $1/lib/window.c ./lib/vorbis_window.c 1.17 +cp $1/lib/info.c ./lib/vorbis_info.c 1.18 +cp $1/lib/res0.c ./lib/vorbis_res0.c 1.19 +cp $1/lib/lookup.h ./lib/lookup.h 1.20 +cp $1/lib/lookup.c ./lib/vorbis_lookup.c 1.21 +sed s/lookup\.c/vorbis_lookup\.c/g $1/lib/lsp.c >./lib/vorbis_lsp.c 1.22 +cp $1/lib/codebook.h ./lib/codebook.h 1.23 +cp $1/lib/registry.c ./lib/vorbis_registry.c 1.24 +cp $1/lib/smallft.h ./lib/smallft.h 1.25 +cp $1/lib/synthesis.c ./lib/vorbis_synthesis.c 1.26 +cp $1/lib/masking.h ./lib/masking.h 1.27 +cp $1/lib/window.h ./lib/window.h 1.28 +cp $1/lib/scales.h ./lib/scales.h 1.29 +cp $1/lib/lsp.h ./lib/lsp.h 1.30 +cp $1/lib/analysis.c ./lib/vorbis_analysis.c 1.31 +cp $1/lib/misc.h ./lib/misc.h 1.32 +cp $1/lib/floor1.c ./lib/vorbis_floor1.c 1.33 +cp $1/lib/lpc.c ./lib/vorbis_lpc.c 1.34 +cp $1/lib/backends.h ./lib/backends.h 1.35 +cp $1/lib/sharedbook.c ./lib/vorbis_sharedbook.c 1.36 +cp $1/lib/mapping0.c ./lib/vorbis_mapping0.c 1.37 +cp $1/lib/smallft.c ./lib/vorbis_smallft.c 1.38 +cp $1/lib/psy.h ./lib/psy.h 1.39 +cp $1/lib/bitrate.h ./lib/bitrate.h 1.40 +cp $1/lib/envelope.c ./lib/vorbis_envelope.c 1.41 +cp $1/lib/os.h ./lib/os.h 1.42 +cp $1/lib/mdct.c ./lib/vorbis_mdct.c 1.43 +cp $1/lib/codec_internal.h ./lib/codec_internal.h 1.44 +cp $1/lib/mdct.h ./lib/mdct.h 1.45 +cp $1/lib/registry.h ./lib/registry.h 1.46 +cp $1/lib/codebook.c ./lib/vorbis_codebook.c 1.47 +cp $1/lib/bitrate.c ./lib/vorbis_bitrate.c 1.48 +cp $1/lib/block.c ./lib/vorbis_block.c 1.49 +cp $1/include/vorbis/codec.h ./include/vorbis/codec.h 1.50 +cp $1/todo.txt ./todo.txt 1.51 +cp $1/COPYING ./COPYING 1.52 +cp $1/README ./README 1.53 +cp $1/AUTHORS ./AUTHORS 1.54 + 1.55 +# Encoder support 1.56 +cp $1/lib/vorbisenc.c ./lib/vorbisenc.c 1.57 +cp $1/include/vorbis/vorbisenc.h ./include/vorbis/vorbisenc.h 1.58 +mkdir -p ./lib/modes 1.59 +cp $1/lib/modes/setup_44.h ./lib/modes/setup_44.h 1.60 +cp $1/lib/modes/setup_44u.h ./lib/modes/setup_44u.h 1.61 +cp $1/lib/modes/setup_44p51.h ./lib/modes/setup_44p51.h 1.62 +cp $1/lib/modes/setup_32.h ./lib/modes/setup_32.h 1.63 +cp $1/lib/modes/setup_8.h ./lib/modes/setup_8.h 1.64 +cp $1/lib/modes/setup_11.h ./lib/modes/setup_11.h 1.65 +cp $1/lib/modes/setup_16.h ./lib/modes/setup_16.h 1.66 +cp $1/lib/modes/setup_22.h ./lib/modes/setup_22.h 1.67 +cp $1/lib/modes/setup_X.h ./lib/modes/setup_X.h 1.68 +cp $1/lib/modes/floor_all.h ./lib/modes/floor_all.h 1.69 +cp $1/lib/modes/residue_44.h ./lib/modes/residue_44.h 1.70 +cp $1/lib/modes/residue_44u.h ./lib/modes/residue_44u.h 1.71 +cp $1/lib/modes/residue_44p51.h ./lib/modes/residue_44p51.h 1.72 +cp $1/lib/modes/residue_8.h ./lib/modes/residue_8.h 1.73 +cp $1/lib/modes/residue_16.h ./lib/modes/residue_16.h 1.74 +cp $1/lib/modes/psych_44.h ./lib/modes/psych_44.h 1.75 +cp $1/lib/modes/psych_8.h ./lib/modes/psych_8.h 1.76 +cp $1/lib/modes/psych_11.h ./lib/modes/psych_11.h 1.77 +cp $1/lib/modes/psych_16.h ./lib/modes/psych_16.h 1.78 +mkdir -p ./lib/books/coupled 1.79 +mkdir -p ./lib/books/floor 1.80 +mkdir -p ./lib/books/uncoupled 1.81 +cp $1/lib/books/coupled/res_books_stereo.h ./lib/books/coupled/ 1.82 +cp $1/lib/books/coupled/res_books_51.h ./lib/books/coupled/ 1.83 +cp $1/lib/books/floor/floor_books.h ./lib/books/floor/ 1.84 +cp $1/lib/books/uncoupled/res_books_uncoupled.h ./lib/books/uncoupled/ 1.85 + 1.86 +# Add any patches against upstream here.