media/libspeex_resampler/update.sh
author Ryan VanderMeulen <ryanvm@gmail.com>
Wed, 26 Mar 2014 20:46:47 -0400
changeset 175406 e4423b6f3ca82a6e802891bc40410ee39703b061
parent 170857 441506ef7062b9b16f08c404d392409d9cea4a4e
child 192471 0f1cea1a1a952c84d2a5758dbf9efc3ee6fe5dfc
permissions -rw-r--r--
Merge b2g-inbound to m-c.

# 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/.

# Usage: ./update.sh <opus-tools_directory>
#
# Copies the needed files from a directory containing the original
# opus-tools sources.

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
cp $1/AUTHORS .
cp $1/COPYING .

# apply outstanding local patches
patch -p1 < sse-detect-runtime.patch
patch -p3 < reset.patch
patch -p3 < set-skip-frac.patch