Bug 1530715 - P1: Create an empty cubeb-coreaudio-rs crate in libcubeb. r=kinetik

To import cubeb-coreaudio-rs crate later, creating a dummy folder in
advance in libcubeb. It should be the mirrow of cubeb-coreaudio-rs crate
on github. The information of cubeb-coreaudio-rs is in README_MOZILLA.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Chun-Min Chang 2019-07-10 08:05:53 +00:00
Родитель 7cd76c27d8
Коммит 487c109761
2 изменённых файлов: 41 добавлений и 0 удалений

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

@ -0,0 +1,6 @@
The source from this directory was copied from the cubeb-coreaudio-rs
git repository using the update.sh script.
The cubeb-coreaudio-rs git repository is: https://github.com/ChunMinChang/cubeb-coreaudio-rs
The git commit ID used was 0000000000000000000000000000000000000000 (0000-00-00 00:00:00)

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

@ -0,0 +1,35 @@
# Usage: sh update.sh <upstream_src_directory>
set -e
cp -p $1/LICENSE .
cp -p $1/Cargo.toml .
cp -r $1/coreaudio-sys-utils .
test -d src || mkdir -p src
# Copy all the files under src folder, except tests.
rsync -av --progress $1/src/ src/ --exclude backend/tests
if [ -d $1/.git ]; then
rev=$(cd $1 && git rev-parse --verify HEAD)
date=$(cd $1 && git show -s --format=%ci 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
echo "$version ($date)"
sed -i.bak -e "/The git commit ID used was/ s/[0-9a-f]\{40\}\(-dirty\)\{0,1\} .\{1,100\}/$version ($date)/" README_MOZILLA
rm README_MOZILLA.bak
else
echo "Remember to update README_MOZILLA with the version details."
fi
# Apply patches for gecko
for patch in *.patch; do
[ -f "$patch" ] || continue
echo "Apply $patch"
patch -p4 < $patch
done