2
0

unpack_g722_data.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/bin/sh
  2. #
  3. # SpanDSP - a series of DSP components for telephony
  4. #
  5. # unpack_g722_data.sh
  6. #
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License version 2.1,
  9. # as published by the Free Software Foundation.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Lesser General Public
  17. # License along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. ITUDATA="../../../T-REC-G.722-198703-I!AppII!ZPF-E.zip"
  20. cd test-data/itu
  21. if [ -d g722 ]
  22. then
  23. cd g722
  24. else
  25. mkdir g722
  26. RETVAL=$?
  27. if [ $RETVAL != 0 ]
  28. then
  29. echo Cannot create test-data/itu/g722!
  30. exit $RETVAL
  31. fi
  32. cd g722
  33. fi
  34. rm -rf T*
  35. rm -rf software
  36. unzip ${ITUDATA} >/dev/null
  37. RETVAL=$?
  38. if [ $RETVAL != 0 ]
  39. then
  40. echo Cannot unpack the ITU test vectors for G.722!
  41. exit $RETVAL
  42. fi
  43. #rm ${ITUDATA}
  44. unzip ./software/G722ap2/G722E/Software.zip >/dev/null
  45. RETVAL=$?
  46. if [ $RETVAL != 0 ]
  47. then
  48. echo Cannot unpack the ITU test vectors for G.722!
  49. exit $RETVAL
  50. fi
  51. mv ./software/G722ap2/G722E/T* .
  52. rm -rf software
  53. echo The ITU test vectors for G.722 should now be in the g722 directory