mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-04 19:31:56 +00:00
add 'make sounds' and 'make sounds-install' makefile targets to download and install soundfiles (FSBUILD-28)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6611 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
TAR=@TAR@
|
||||
ZCAT=@ZCAT@
|
||||
WGET=@WGET@
|
||||
CURL=@CURL@
|
||||
|
||||
DIR=`pwd`
|
||||
|
||||
if [ -f $WGET ] ; then
|
||||
DOWNLOAD_CMD=$WGET
|
||||
else
|
||||
if [ -f $CURL ] ; then
|
||||
DOWNLOAD_CMD="$CURL -O"
|
||||
fi
|
||||
fi
|
||||
|
||||
base=http://files.freeswitch.org/
|
||||
tarfile=$1
|
||||
install=$2
|
||||
|
||||
if [ ! -f $tarfile ] ; then
|
||||
$DOWNLOAD_CMD $base$tarfile
|
||||
if [ ! -f $tarfile ] ; then
|
||||
echo cannot find $tarfile
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -z $install ] ; then
|
||||
test -d $install || mkdir $install
|
||||
cd $install && $ZCAT -c -d $DIR/$tarfile | $TAR x
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user