2
0

unpack_v56ter_data.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. #
  3. # SpanDSP - a series of DSP components for telephony
  4. #
  5. # unpack_v56ter_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-V.56ter-199608-I!!ZPF-E.zip"
  20. cd test-data/itu
  21. if [ -d v56ter ]
  22. then
  23. cd v56ter
  24. else
  25. mkdir v56ter
  26. RETVAL=$?
  27. if [ $RETVAL != 0 ]
  28. then
  29. echo Cannot create test-data/itu/v56ter!
  30. exit $RETVAL
  31. fi
  32. cd v56ter
  33. fi
  34. rm -rf software
  35. rm -rf *.TST
  36. unzip ${ITUDATA} >/dev/null
  37. RETVAL=$?
  38. if [ $RETVAL != 0 ]
  39. then
  40. echo Cannot unpack the ITU test vectors for V.56ter!
  41. exit $RETVAL
  42. fi
  43. #rm ${ITUDATA}
  44. unzip software/V56ter/V56tere/Software.zip >/dev/null
  45. RETVAL=$?
  46. if [ $RETVAL != 0 ]
  47. then
  48. echo Cannot unpack the ITU test vectors for V.56ter!
  49. exit $RETVAL
  50. fi
  51. mv ./software/V56ter/V56tere/*.TST .
  52. chmod 644 *.TST
  53. rm -rf software
  54. echo The ITU test vectors for V.56ter should now be in the v56ter directory