get_ilbc_source.sh 888 B

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 the Global IP Solutions iLBC encoder/decoder"
  11. echo "source code from http://ilbcfreeware.org. Use of this code requires"
  12. echo "agreeing to the license agreement present at that site."
  13. echo ""
  14. echo "This script assumes that you have already agreed to the license agreement."
  15. echo "If you have not done so, you can abort the script now."
  16. echo "***"
  17. read tmp
  18. wget -P codecs/ilbc http://www.ietf.org/rfc/rfc3951.txt
  19. wget -P codecs/ilbc http://www.ilbcfreeware.org/documentation/extract-cfile.awk
  20. (cd codecs/ilbc && awk -f extract-cfile.awk rfc3951.txt)
  21. echo "***"
  22. echo "The iLBC source code download is complete."
  23. echo "***"
  24. exit 0