media/libvorbis/update.sh

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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

mercurial