Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/unpack_g722_data.sh @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 15:50:58 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
---|---|
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 # | |
20 # $Id: unpack_g722_data.sh,v 1.5 2008/05/03 07:55:04 steveu Exp $ | |
21 # | |
22 | |
23 ITUDATA="../../../T-REC-G.722-198703-I!AppII!ZPF-E.zip" | |
24 | |
25 cd test-data/itu | |
26 if [ -d g722 ] | |
27 then | |
28 cd g722 | |
29 else | |
30 mkdir g722 | |
31 RETVAL=$? | |
32 if [ $RETVAL != 0 ] | |
33 then | |
34 echo Cannot create test-data/itu/g722! | |
35 exit $RETVAL | |
36 fi | |
37 cd g722 | |
38 fi | |
39 | |
40 rm -rf T* | |
41 rm -rf software | |
42 unzip ${ITUDATA} >/dev/null | |
43 RETVAL=$? | |
44 if [ $RETVAL != 0 ] | |
45 then | |
46 echo Cannot unpack the ITU test vectors for G.722! | |
47 exit $RETVAL | |
48 fi | |
49 #rm ${ITUDATA} | |
50 unzip ./software/G722ap2/G722E/Software.zip >/dev/null | |
51 RETVAL=$? | |
52 if [ $RETVAL != 0 ] | |
53 then | |
54 echo Cannot unpack the ITU test vectors for G.722! | |
55 exit $RETVAL | |
56 fi | |
57 mv ./software/G722ap2/G722E/T* . | |
58 rm -rf software | |
59 echo The ITU test vectors for G.722 should now be in the g722 directory |