get_ilbc_source.sh 1.0 KB

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