12345678910111213141516171819202122232425262728293031323334 |
- #!/bin/sh
- TAR=@TAR@
- ZCAT=@ZCAT@
- WGET=@WGET@
- CURL=@CURL@
- if [ -f "$WGET" ] ; then
- DOWNLOAD_CMD=$WGET
- else
- if [ -f "$CURL" ] ; then
- DOWNLOAD_CMD="$CURL -L -O"
- fi
- fi
- base=http://files.freeswitch.org/g729/
- tarfile=$1
- url=`echo $tarfile | grep "://"`
- if [ ! -z $url ] ; then
- base=$tarfile/
- tarfile=$2
- fi
- if [ ! -f $tarfile ] ; then
- $DOWNLOAD_CMD $base$tarfile
- if [ ! -f $tarfile ] ; then
- echo cannot find $tarfile
- exit 1
- fi
- fi
- exit 0
|