Bug 1505278 - replace libmkv's README_MOZILLA with moz.yaml. r=jya

Differential Revision: https://phabricator.services.mozilla.com/D11147

--HG--
extra : moz-landing-system : lando
This commit is contained in:
byron jones 2018-11-11 22:01:14 +00:00
Родитель 2edcb8deb1
Коммит 0ef0024e3e
3 изменённых файлов: 25 добавлений и 45 удалений

Просмотреть файл

@ -1,6 +0,0 @@
The source from this directory was copied from the libvpx/third_party/libmkv
git repository using the update.sh script.
The libvpx git repository is: http://git.chromium.org/webm/libvpx.git
The git commit ID used was c5aaf923d80e9f71e0c93d7d99dc1e2f83d7acbf.

25
media/libmkv/moz.yaml Normal file
Просмотреть файл

@ -0,0 +1,25 @@
# Version of this schema
schema: 1
bugzilla:
# Bugzilla product and component for this directory and subdirectories
product: "Core"
component: "Audio/Video"
origin:
name: "libMKV"
description: "WebM container writer"
# Upstream have abandoned this library.
url: "https://chromium.googlesource.com/webm/libvpx/+/c5aaf923d80e9f71e0c93d7d99dc1e2f83d7acbf/third_party/libmkv/"
license: "BSD-3-Clause-Clear"
release: "c5aaf923d80e9f71e0c93d7d99dc1e2f83d7acbf"
# The following patches have been applied after vendoring:
# 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

Просмотреть файл

@ -1,39 +0,0 @@
# 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