gecko/media/libspeex_resampler/update.sh
Ehsan Akhgari 1d13e17a19 Correct the type names in speex_config_types.h; no bug, irc-r=padenot
Turns out that the compiler believes you when you say unsigned once.
No need to repeat yourself.

--HG--
extra : rebase_source : 979560fd47f7591d9cec0533a29462d3a25e3528
2013-01-11 11:44:09 -05:00

18 lines
819 B
Bash

# 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 <libspeex_src_directory>
#
# Copies the needed files from a directory containing the original
# libspeex sources that we need for HTML5 media playback rate change.
cp $1/libspeex/resample.c src
cp $1/libspeex/arch.h src
cp $1/libspeex/stack_alloc.h src
cp $1/libspeex/fixed_generic.h src
cp $1/include/speex/speex_resampler.h src
cp $1/include/speex/speex_types.h src
sed -e 's/unsigned @SIZE16@/uint16_t/g' -e 's/unsigned @SIZE32@/uint32_t/g' -e 's/@SIZE16@/int16_t/g' -e 's/@SIZE32@/int32_t/g' < $1/include/speex/speex_config_types.h.in > src/speex_config_types.h
cp $1/AUTHORS .
cp $1/COPYING .