| 1 | #!/bin/sh -e |
| 2 | |
| 3 | if [ -f codecs/ilbc/iLBC_define.h ]; then |
| 4 | echo "***" |
| 5 | echo "The iLBC source code appears to already be present and does not" |
| 6 | echo "need to be downloaded." |
| 7 | echo "***" |
| 8 | |
| 9 | exit 1 |
| 10 | fi |
| 11 | |
| 12 | echo "***" |
| 13 | echo "This script will download and extract the iLBC RFC from http://ilbcfreeware.org." |
| 14 | echo "As Google acquired Global IP Solutions, usage of iLBC is bound by the same" |
| 15 | echo "license as the WebRTC project (http://www.webrtc.org). Usage of the iLBC codec" |
| 16 | echo "entails agreeing to the license agreement present at that site." |
| 17 | echo "" |
| 18 | echo "This script assumes that you have already agreed to the license agreement." |
| 19 | echo "If you have not done so, you can abort the script now." |
| 20 | echo "***" |
| 21 | |
| 22 | read tmp |
| 23 | |
| 24 | wget -P codecs/ilbc http://www.ietf.org/rfc/rfc3951.txt |
| 25 | |
| 26 | wget -q -O - http://www.ilbcfreeware.org/documentation/extract-cfile.txt | tr -d '\r' > codecs/ilbc/extract-cfile.awk |
| 27 | |
| 28 | (cd codecs/ilbc && awk -f extract-cfile.awk rfc3951.txt) |
| 29 | |
| 30 | echo "***" |
| 31 | echo "The iLBC source code download is complete." |
| 32 | echo "***" |
| 33 | |
| 34 | exit 0 |