-
Notifications
You must be signed in to change notification settings - Fork 2
/
download-files.sh
32 lines (26 loc) · 1.27 KB
/
download-files.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
mkdir -p libopus-src
mkdir -p libopusfile-src
mkdir -p libogg-src
rm -rf libopus-src/*
rm -rf libopusfile-src/*
rm -rf libogg-src/*
curl -0 http://downloads.xiph.org/releases/opus/opus-1.1.3.tar.gz | tar -zx --strip 1 -C libopus-src/
curl -0 http://downloads.xiph.org/releases/opus/opusfile-0.8.tar.gz | tar -zx --strip 1 -C libopusfile-src/
curl -0 http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz | tar -zx --strip 1 -C libogg-src/
patch -p0 < opus-include.patch
##
## this is how the opus-include.patch got made
##
## make the code in lib*-src work, then execute following lines:
#rm libogg-src/.DS_Store libopus-src/.DS_Store libopusfile-src/.DS_Store
#mkdir -p libopus-src.orig
#mkdir -p libopusfile-src.orig
#mkdir -p libogg-src.orig
#curl -0 http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz | tar -zx --strip 1 -C libopus-src.orig/
#curl -0 http://downloads.xiph.org/releases/opus/opusfile-0.6.tar.gz | tar -zx --strip 1 -C libopusfile-src.orig/
#curl -0 http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz | tar -zx --strip 1 -C libogg-src.orig/
#diff -Naur libogg-src.orig libogg-src > opus-include.patch
#diff -Naur libopus-src.orig libopus-src >> opus-include.patch
#diff -Naur libopusfile-src.orig libopusfile-src >> opus-include.patch
#rm -rf *.orig