2
0

unpack_g726_data.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/sh
  2. #
  3. # SpanDSP - a series of DSP components for telephony
  4. #
  5. # unpack_g726_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.726-199103-I!AppII!SOFT-ZST-E.zip"
  20. cd test-data/itu
  21. if [ -d g726 ]
  22. then
  23. cd g726
  24. else
  25. mkdir g726
  26. RETVAL=$?
  27. if [ $RETVAL != 0 ]
  28. then
  29. echo Cannot create test-data/itu/g726!
  30. exit $RETVAL
  31. fi
  32. cd g726
  33. fi
  34. rm -rf DISK1
  35. rm -rf DISK2
  36. rm -rf G726piiE.WW7.doc
  37. rm -rf Software.zip
  38. unzip ${ITUDATA} >/dev/null
  39. RETVAL=$?
  40. if [ $RETVAL != 0 ]
  41. then
  42. echo Cannot unpack the ITU test vectors for G.726!
  43. exit $RETVAL
  44. fi
  45. #rm $(ITUDATA}
  46. rm G726piiE.WW7.doc
  47. unzip Software.zip >/dev/null
  48. RETVAL=$?
  49. if [ $RETVAL != 0 ]
  50. then
  51. echo Cannot unpack the ITU test vectors for G.726!
  52. exit $RETVAL
  53. fi
  54. rm Software.zip
  55. mv ./software/G726ap2/G726ap2e/DISK1 .
  56. mv ./software/G726ap2/G726ap2e/DISK2 .
  57. rm -rf ./software
  58. echo The ITU test vectors for G.726 should now be in the g726 directory