media/libmkv/update.sh

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 # Usage: sh update.sh <upstream_src_directory>
     2 set -e
     3 echo "copy source from libvpx"
     5 cp $1/third_party/libmkv/EbmlBufferWriter.c .
     6 cp $1/third_party/libmkv/WebMElement.c .
     7 cp $1/third_party/libmkv/EbmlWriter.c .
     8 cp $1/third_party/libmkv/EbmlWriter.h .
     9 cp $1/third_party/libmkv/EbmlBufferWriter.h .
    10 cp $1/third_party/libmkv/WebMElement.h .
    11 cp $1/third_party/libmkv/EbmlIDs.h .
    13 cp $1/LICENSE .
    14 cp $1/README .
    15 cp $1/AUTHORS .
    16 if [ -d $1/.git ]; then
    17   rev=$(cd $1 && git rev-parse --verify HEAD)
    18   dirty=$(cd $1 && git diff-index --name-only HEAD)
    19 fi
    21 if [ -n "$rev" ]; then
    22   version=$rev
    23   if [ -n "$dirty" ]; then
    24     version=$version-dirty
    25     echo "WARNING: updating from a dirty git repository."
    26   fi
    27   sed -i.bak -e "/The git commit ID used was/ s/[0-9a-f]\{40\}\(-dirty\)\{0,1\}\./$version./" README_MOZILLA
    28   rm README_MOZILLA.bak
    29 else
    30   echo "Remember to update README_MOZILLA with the version details."
    31 fi
    33 # Apply any patches against upstream here.
    34 patch -p1 < source_fix.patch
    35 patch -p1 < gecko_fix.patch
    36 patch -p1 < const_fix.patch
    37 patch -p3 < bock_fix.patch
    38 patch -p3 < bug970774.patch

mercurial