comparison spandsp-0.0.6pre17/unpack_g726_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_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 #
20 # $Id: unpack_g726_data.sh,v 1.6 2008/05/03 07:55:04 steveu Exp $
21 #
22
23 ITUDATA="../../../T-REC-G.726-199103-I!AppII!SOFT-ZST-E.zip"
24
25 cd test-data/itu
26 if [ -d g726 ]
27 then
28 cd g726
29 else
30 mkdir g726
31 RETVAL=$?
32 if [ $RETVAL != 0 ]
33 then
34 echo Cannot create test-data/itu/g726!
35 exit $RETVAL
36 fi
37 cd g726
38 fi
39
40 rm -rf DISK1
41 rm -rf DISK2
42 rm -rf G726piiE.WW7.doc
43 rm -rf Software.zip
44 unzip ${ITUDATA} >/dev/null
45 RETVAL=$?
46 if [ $RETVAL != 0 ]
47 then
48 echo Cannot unpack the ITU test vectors for G.726!
49 exit $RETVAL
50 fi
51 #rm $(ITUDATA}
52 rm G726piiE.WW7.doc
53 unzip Software.zip >/dev/null
54 RETVAL=$?
55 if [ $RETVAL != 0 ]
56 then
57 echo Cannot unpack the ITU test vectors for G.726!
58 exit $RETVAL
59 fi
60 rm Software.zip
61 mv ./software/G726ap2/G726ap2e/DISK1 .
62 mv ./software/G726ap2/G726ap2e/DISK2 .
63 rm -rf ./software
64 echo The ITU test vectors for G.726 should now be in the g726 directory

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.