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 20ITUDATA="../../../T-REC-G.722-198703-I!AppII!ZPF-E.zip" 21 22cd test-data/itu 23if [ -d g722 ] 24then 25 cd g722 26else 27 mkdir g722 28 RETVAL=$? 29 if [ $RETVAL != 0 ] 30 then 31 echo Cannot create test-data/itu/g722! 32 exit $RETVAL 33 fi 34 cd g722 35fi 36 37rm -rf T* 38rm -rf software 39unzip ${ITUDATA} >/dev/null 40RETVAL=$? 41if [ $RETVAL != 0 ] 42then 43 echo Cannot unpack the ITU test vectors for G.722! 44 exit $RETVAL 45fi 46#rm ${ITUDATA} 47unzip ./software/G722ap2/G722E/Software.zip >/dev/null 48RETVAL=$? 49if [ $RETVAL != 0 ] 50then 51 echo Cannot unpack the ITU test vectors for G.722! 52 exit $RETVAL 53fi 54mv ./software/G722ap2/G722E/T* . 55rm -rf software 56echo The ITU test vectors for G.722 should now be in the g722 directory 57