]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add debugging information to getsounds.sh
authorMichael Jerris <mike@jerris.com>
Tue, 8 Jun 2010 19:35:07 +0000 (15:35 -0400)
committerMichael Jerris <mike@jerris.com>
Tue, 8 Jun 2010 19:35:07 +0000 (15:35 -0400)
build/getsounds.sh.in

index 51cc19b878d8aa64527ff1873608b11434ad074c..09105fd280e81a9a64cf7e5f4d4abb5657fc93a7 100755 (executable)
@@ -9,16 +9,19 @@ DIR=`pwd`
 
 if [ -x "$WGET" ] ; then
     DOWNLOAD_CMD=$WGET
-else
-    if [ -x "$CURL" ] ; then
-        DOWNLOAD_CMD="$CURL -O"
-    fi
+fi
+if [ "x${DOWNLOAD_CMD}" = "x" -a -x "$CURL" ] ; then
+    DOWNLOAD_CMD="$CURL -O"
 fi
 
 base=http://files.freeswitch.org/
 tarfile=$1
 install=$2
 
+echo -n "#"
+pwd
+echo "# $0 $1 $2"
+
 if [ ! -f $tarfile ] ; then
     $DOWNLOAD_CMD $base$tarfile
     if [ ! -f $tarfile ] ; then