1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libmkv/update.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +# Usage: sh update.sh <upstream_src_directory> 1.5 +set -e 1.6 +echo "copy source from libvpx" 1.7 + 1.8 +cp $1/third_party/libmkv/EbmlBufferWriter.c . 1.9 +cp $1/third_party/libmkv/WebMElement.c . 1.10 +cp $1/third_party/libmkv/EbmlWriter.c . 1.11 +cp $1/third_party/libmkv/EbmlWriter.h . 1.12 +cp $1/third_party/libmkv/EbmlBufferWriter.h . 1.13 +cp $1/third_party/libmkv/WebMElement.h . 1.14 +cp $1/third_party/libmkv/EbmlIDs.h . 1.15 + 1.16 +cp $1/LICENSE . 1.17 +cp $1/README . 1.18 +cp $1/AUTHORS . 1.19 +if [ -d $1/.git ]; then 1.20 + rev=$(cd $1 && git rev-parse --verify HEAD) 1.21 + dirty=$(cd $1 && git diff-index --name-only HEAD) 1.22 +fi 1.23 + 1.24 +if [ -n "$rev" ]; then 1.25 + version=$rev 1.26 + if [ -n "$dirty" ]; then 1.27 + version=$version-dirty 1.28 + echo "WARNING: updating from a dirty git repository." 1.29 + fi 1.30 + sed -i.bak -e "/The git commit ID used was/ s/[0-9a-f]\{40\}\(-dirty\)\{0,1\}\./$version./" README_MOZILLA 1.31 + rm README_MOZILLA.bak 1.32 +else 1.33 + echo "Remember to update README_MOZILLA with the version details." 1.34 +fi 1.35 + 1.36 +# Apply any patches against upstream here. 1.37 +patch -p1 < source_fix.patch 1.38 +patch -p1 < gecko_fix.patch 1.39 +patch -p1 < const_fix.patch 1.40 +patch -p3 < bock_fix.patch 1.41 +patch -p3 < bug970774.patch