Bumping gaia.json for 3 gaia revision(s) a=gaia-bump
[gecko.git] / media / libsoundtouch / update.sh
blob821e135f155e2db4827b259dd12570dd02bb0981
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 # Usage: ./update.sh <SoundTouch_src_directory>
7 # Copies the needed files from a directory containing the original
8 # soundtouch sources that we need for HTML5 media playback rate change.
10 cp $1/COPYING.TXT LICENSE
11 cp $1/source/SoundTouch/AAFilter.cpp src
12 cp $1/source/SoundTouch/AAFilter.h src
13 cp $1/source/SoundTouch/cpu_detect.h src
14 cp $1/source/SoundTouch/cpu_detect_x86.cpp src
15 cp $1/source/SoundTouch/FIFOSampleBuffer.cpp src
16 cp $1/source/SoundTouch/FIRFilter.cpp src
17 cp $1/source/SoundTouch/FIRFilter.h src
18 cp $1/source/SoundTouch/InterpolateLinear.cpp src
19 cp $1/source/SoundTouch/InterpolateLinear.h src
20 cp $1/source/SoundTouch/InterpolateCubic.cpp src
21 cp $1/source/SoundTouch/InterpolateCubic.h src
22 cp $1/source/SoundTouch/InterpolateShannon.cpp src
23 cp $1/source/SoundTouch/InterpolateShannon.h src
24 cp $1/source/SoundTouch/mmx_optimized.cpp src
25 cp $1/source/SoundTouch/RateTransposer.cpp src
26 cp $1/source/SoundTouch/RateTransposer.h src
27 cp $1/source/SoundTouch/SoundTouch.cpp src
28 cp $1/source/SoundTouch/sse_optimized.cpp src
29 cp $1/source/SoundTouch/TDStretch.cpp src
30 cp $1/source/SoundTouch/TDStretch.h src
31 cp $1/include/SoundTouch.h src
32 cp $1/include/FIFOSampleBuffer.h src
33 cp $1/include/FIFOSamplePipe.h src
34 cp $1/include/SoundTouch.h src
35 cp $1/include/STTypes.h src
37 # Remove the Windows line ending characters from the files.
38 for i in src/*
40 cat $i | tr -d '\015' > $i.lf
41 mv $i.lf $i
42 done
44 # Patch the imported files.
45 patch -p1 < moz-libsoundtouch.patch