1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libspeex_resampler/update.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +# Usage: ./update.sh <opus-tools_directory> 1.9 +# 1.10 +# Copies the needed files from a directory containing the original 1.11 +# opus-tools sources. 1.12 + 1.13 +set -e -x 1.14 + 1.15 +cp $1/src/resample.c src 1.16 +cp $1/src/resample_sse.h src 1.17 +cp $1/src/arch.h src 1.18 +cp $1/src/stack_alloc.h src 1.19 +cp $1/src/speex_resampler.h src 1.20 +cp $1/AUTHORS . 1.21 +cp $1/COPYING . 1.22 + 1.23 +# apply outstanding local patches 1.24 +patch -p1 < sse-detect-runtime.patch 1.25 +patch -p3 < reset.patch 1.26 +patch -p3 < set-skip-frac.patch