media/libcubeb/update.sh

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # Usage: sh update.sh <upstream_src_directory>
michael@0 2 set -e
michael@0 3
michael@0 4 cp $1/include/cubeb/cubeb.h include
michael@0 5 cp $1/src/cubeb.c src
michael@0 6 cp $1/src/cubeb-internal.h src
michael@0 7 cp $1/src/cubeb_alsa.c src
michael@0 8 cp $1/src/cubeb_winmm.c src
michael@0 9 cp $1/src/cubeb_audiounit.c src
michael@0 10 cp $1/src/cubeb_pulse.c src
michael@0 11 cp $1/src/cubeb_sndio.c src
michael@0 12 cp $1/src/cubeb_opensl.c src
michael@0 13 cp $1/src/cubeb_audiotrack.c src
michael@0 14 cp $1/src/cubeb_wasapi.cpp src
michael@0 15 cp $1/src/cubeb-speex-resampler.h src
michael@0 16 cp $1/src/android/audiotrack_definitions.h src/android
michael@0 17 cp $1/src/android/sles_definitions.h src/android
michael@0 18 cp $1/LICENSE .
michael@0 19 cp $1/README .
michael@0 20 cp $1/AUTHORS .
michael@0 21 cp $1/test/common.h tests/common.h
michael@0 22 cp $1/test/test_audio.c tests/test_audio.cpp
michael@0 23 cp $1/test/test_tone.c tests/test_tone.cpp
michael@0 24 cp $1/test/test_sanity.c tests/test_sanity.cpp
michael@0 25 cp $1/test/test_latency.c tests/test_latency.cpp
michael@0 26
michael@0 27 if [ -d $1/.git ]; then
michael@0 28 rev=$(cd $1 && git rev-parse --verify HEAD)
michael@0 29 dirty=$(cd $1 && git diff-index --name-only HEAD)
michael@0 30 fi
michael@0 31
michael@0 32 if [ -n "$rev" ]; then
michael@0 33 version=$rev
michael@0 34 if [ -n "$dirty" ]; then
michael@0 35 version=$version-dirty
michael@0 36 echo "WARNING: updating from a dirty git repository."
michael@0 37 fi
michael@0 38 sed -i.bak -e "/The git commit ID used was/ s/[0-9a-f]\{40\}\(-dirty\)\{0,1\}\./$version./" README_MOZILLA
michael@0 39 rm README_MOZILLA.bak
michael@0 40 else
michael@0 41 echo "Remember to update README_MOZILLA with the version details."
michael@0 42 fi
michael@0 43

mercurial