media/libogg/update.sh

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 # Usage: ./update.sh <ogg_src_directory>
     2 #
     3 # Copies the needed files from a directory containing the original
     4 # libogg source that we need for the Mozilla HTML5 media support.
     5 cp $1/include/ogg/config_types.h ./include/ogg/config_types.h
     6 cp $1/include/ogg/ogg.h ./include/ogg/ogg.h
     7 cp $1/include/ogg/os_types.h ./include/ogg/os_types.h
     8 cp $1/CHANGES ./CHANGES
     9 cp $1/COPYING ./COPYING
    10 cp $1/README ./README
    11 cp $1/src/bitwise.c ./src/ogg_bitwise.c
    12 cp $1/src/framing.c ./src/ogg_framing.c
    13 cp $1/AUTHORS ./AUTHORS
    14 patch -p0 < solaris-types.patch
    15 # memory-reporting.patch adds ogg_alloc.c, make sure it doesn't exist to avoid
    16 # unpleasantries.
    17 rm -f ./src/ogg_alloc.c
    18 patch -p0 < memory-reporting.patch

mercurial