提交 9a2b82da authored 作者: Travis Cross's avatar Travis Cross

getsounds.sh: add mode-line and reindent

上级 7821e8ad
#!/bin/sh #!/bin/sh
##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
TAR=@TAR@ TAR=@TAR@
ZCAT=@ZCAT@ ZCAT=@ZCAT@
...@@ -8,10 +9,10 @@ CURL=@CURL@ ...@@ -8,10 +9,10 @@ CURL=@CURL@
DIR=`pwd` DIR=`pwd`
if [ -x "$WGET" ] ; then if [ -x "$WGET" ] ; then
DOWNLOAD_CMD=$WGET DOWNLOAD_CMD=$WGET
fi fi
if [ "x${DOWNLOAD_CMD}" = "x" -a -x "$CURL" ] ; then if [ "x${DOWNLOAD_CMD}" = "x" -a -x "$CURL" ] ; then
DOWNLOAD_CMD="$CURL -O" DOWNLOAD_CMD="$CURL -O"
fi fi
base=http://files.freeswitch.org/ base=http://files.freeswitch.org/
...@@ -23,8 +24,8 @@ pwd ...@@ -23,8 +24,8 @@ pwd
echo "# $0 $1 $2" echo "# $0 $1 $2"
if [ -n "$FS_SOUNDS_DIR" ] ; then if [ -n "$FS_SOUNDS_DIR" ] ; then
[ -d $FS_SOUNDS_DIR ] || mkdir -p $FS_SOUNDS_DIR [ -d $FS_SOUNDS_DIR ] || mkdir -p $FS_SOUNDS_DIR
DIR=$FS_SOUNDS_DIR DIR=$FS_SOUNDS_DIR
fi fi
if [ ! -f $DIR/$tarfile ] ; then if [ ! -f $DIR/$tarfile ] ; then
...@@ -36,8 +37,8 @@ if [ ! -f $DIR/$tarfile ] ; then ...@@ -36,8 +37,8 @@ if [ ! -f $DIR/$tarfile ] ; then
fi fi
if [ ! -z $install ] ; then if [ ! -z $install ] ; then
test -d $install || mkdir $install test -d $install || mkdir $install
cd $install && $ZCAT -c -d $DIR/$tarfile | $TAR xf - cd $install && $ZCAT -c -d $DIR/$tarfile | $TAR xf -
fi fi
exit 0 exit 0
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论