2012-05-21 15:12:37 +04: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 16:40:49 +04:00
|
|
|
# Usage: ./update.sh <opus-tools_directory>
|
2012-05-15 03:01:04 +04:00
|
|
|
#
|
|
|
|
# Copies the needed files from a directory containing the original
|
2013-08-12 16:40:49 +04:00
|
|
|
# opus-tools sources.
|
2013-01-12 02:58:22 +04:00
|
|
|
|
2013-08-12 16:40:49 +04: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-15 03:01:04 +04:00
|
|
|
cp $1/AUTHORS .
|
|
|
|
cp $1/COPYING .
|
2013-01-12 02:58:22 +04:00
|
|
|
|
|
|
|
# apply outstanding local patches
|
2013-07-26 20:46:32 +04:00
|
|
|
patch -p1 < sse-detect-runtime.patch
|