getsounds.sh: add mode-line and reindent
This commit is contained in:
parent
7821e8ad9d
commit
9a2b82dace
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
|
||||
|
||||
TAR=@TAR@
|
||||
ZCAT=@ZCAT@
|
||||
|
@ -8,10 +9,10 @@ CURL=@CURL@
|
|||
DIR=`pwd`
|
||||
|
||||
if [ -x "$WGET" ] ; then
|
||||
DOWNLOAD_CMD=$WGET
|
||||
DOWNLOAD_CMD=$WGET
|
||||
fi
|
||||
if [ "x${DOWNLOAD_CMD}" = "x" -a -x "$CURL" ] ; then
|
||||
DOWNLOAD_CMD="$CURL -O"
|
||||
DOWNLOAD_CMD="$CURL -O"
|
||||
fi
|
||||
|
||||
base=http://files.freeswitch.org/
|
||||
|
@ -23,8 +24,8 @@ pwd
|
|||
echo "# $0 $1 $2"
|
||||
|
||||
if [ -n "$FS_SOUNDS_DIR" ] ; then
|
||||
[ -d $FS_SOUNDS_DIR ] || mkdir -p $FS_SOUNDS_DIR
|
||||
DIR=$FS_SOUNDS_DIR
|
||||
[ -d $FS_SOUNDS_DIR ] || mkdir -p $FS_SOUNDS_DIR
|
||||
DIR=$FS_SOUNDS_DIR
|
||||
fi
|
||||
|
||||
if [ ! -f $DIR/$tarfile ] ; then
|
||||
|
@ -36,8 +37,8 @@ if [ ! -f $DIR/$tarfile ] ; then
|
|||
fi
|
||||
|
||||
if [ ! -z $install ] ; then
|
||||
test -d $install || mkdir $install
|
||||
cd $install && $ZCAT -c -d $DIR/$tarfile | $TAR xf -
|
||||
test -d $install || mkdir $install
|
||||
cd $install && $ZCAT -c -d $DIR/$tarfile | $TAR xf -
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue