aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/scripts/get_ilbc_source.sh
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-26 18:58:37 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-26 18:58:37 +0000
commit8426df7a442f8c4bffffb6ed75055978e3398536 (patch)
treee2ad24db59f525610167e38e5a1123fd3e7d377f /contrib/scripts/get_ilbc_source.sh
parent46c6d062dd6503d6f491d26946d2099be7b9253b (diff)
add a script to make getting the iLBC source code simple for end users
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@111019 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib/scripts/get_ilbc_source.sh')
-rwxr-xr-xcontrib/scripts/get_ilbc_source.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/scripts/get_ilbc_source.sh b/contrib/scripts/get_ilbc_source.sh
new file mode 100755
index 000000000..262218064
--- /dev/null
+++ b/contrib/scripts/get_ilbc_source.sh
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+
+echo "***"
+echo "This script will download the Global IP Solutions iLBC encoder/decoder"
+echo "source code from http://ilbcfreeware.org. Use of this code requires"
+echo "agreeing to the license agreement present at that site."
+echo ""
+echo "This script assumes that you have already agreed to the license agreement."
+echo "If you have not done so, you can abort the script now."
+echo "***"
+
+read
+
+wget -P codecs/ilbc http://www.ietf.org/rfc/rfc3951.txt
+
+wget -P codecs/ilbc http://www.ilbcfreeware.org/documentation/extract-cfile.awk
+
+(cd codecs/ilbc && awk -f extract-cfile.awk rfc3951.txt)
+
+echo "***"
+echo "The iLBC source code download is complete."
+echo "***"