summaryrefslogtreecommitdiffstats
path: root/media/libmkv/update.sh
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /media/libmkv/update.sh
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/libmkv/update.sh')
-rw-r--r--media/libmkv/update.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/media/libmkv/update.sh b/media/libmkv/update.sh
new file mode 100644
index 000000000..8f5e34c46
--- /dev/null
+++ b/media/libmkv/update.sh
@@ -0,0 +1,39 @@
+# Usage: sh update.sh <upstream_src_directory>
+set -e
+echo "copy source from libvpx"
+
+cp $1/third_party/libmkv/EbmlBufferWriter.c .
+cp $1/third_party/libmkv/WebMElement.c .
+cp $1/third_party/libmkv/EbmlWriter.c .
+cp $1/third_party/libmkv/EbmlWriter.h .
+cp $1/third_party/libmkv/EbmlBufferWriter.h .
+cp $1/third_party/libmkv/WebMElement.h .
+cp $1/third_party/libmkv/EbmlIDs.h .
+
+cp $1/LICENSE .
+cp $1/README .
+cp $1/AUTHORS .
+if [ -d $1/.git ]; then
+ rev=$(cd $1 && git rev-parse --verify HEAD)
+ dirty=$(cd $1 && git diff-index --name-only HEAD)
+fi
+
+if [ -n "$rev" ]; then
+ version=$rev
+ if [ -n "$dirty" ]; then
+ version=$version-dirty
+ echo "WARNING: updating from a dirty git repository."
+ fi
+ sed -i.bak -e "/The git commit ID used was/ s/[0-9a-f]\{40\}\(-dirty\)\{0,1\}\./$version./" README_MOZILLA
+ rm README_MOZILLA.bak
+else
+ echo "Remember to update README_MOZILLA with the version details."
+fi
+
+# Apply any patches against upstream here.
+patch -p1 < source_fix.patch
+patch -p1 < gecko_fix.patch
+patch -p1 < const_fix.patch
+patch -p3 < bock_fix.patch
+patch -p3 < bug970774.patch
+patch -p3 < cleanup.patch