2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-08-12 05:40:49 -07:00
|
|
|
# Usage: ./update.sh <opus-tools_directory>
|
2012-05-14 16:01:04 -07:00
|
|
|
#
|
|
|
|
# Copies the needed files from a directory containing the original
|
2013-08-12 05:40:49 -07:00
|
|
|
# opus-tools sources.
|
2013-01-11 14:58:22 -08:00
|
|
|
|
2013-08-12 05:40:49 -07:00
|
|
|
set -e -x
|
|
|
|
|
|
|
|
cp $1/src/resample.c src
|
|
|
|
cp $1/src/resample_sse.h src
|
|
|
|
cp $1/src/arch.h src
|
|
|
|
cp $1/src/stack_alloc.h src
|
|
|
|
cp $1/src/speex_resampler.h src
|
2012-05-14 16:01:04 -07:00
|
|
|
cp $1/AUTHORS .
|
|
|
|
cp $1/COPYING .
|
2013-01-11 14:58:22 -08:00
|
|
|
|
|
|
|
# apply outstanding local patches
|
2013-07-26 09:46:32 -07:00
|
|
|
patch -p1 < sse-detect-runtime.patch
|
2014-02-17 12:52:20 -08:00
|
|
|
patch -p3 < reset.patch
|
2014-02-26 14:44:40 -08:00
|
|
|
patch -p3 < set-skip-frac.patch
|