From: Ken Rice Date: Thu, 11 Sep 2014 20:04:11 +0000 (+0400) Subject: automate this a little more X-Git-Tag: v1.4.8~1^2~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6791c4aa692d683ac02a87e459424eed5035269d;p=thirdparty%2Ffreeswitch.git automate this a little more --- diff --git a/scripts/ci/sounds-en-us-callie.sh b/scripts/ci/sounds-en-us-callie.sh index 32fbc0a400..3df278c621 100755 --- a/scripts/ci/sounds-en-us-callie.sh +++ b/scripts/ci/sounds-en-us-callie.sh @@ -10,11 +10,22 @@ check_input_ver_build $@ eval $(parse_version "$1") build="$2" -cd rpmbuild/SOURCES +basedir=$(pwd); -wget http://files.freeswitch.org/freeswitch-sounds-en-us-callie-48000-$ver.tar.gz +if [ ! -d "$basedir/../freeswitch-sounds" ]; then + cd $basedir/.. + git clone https://stash.freeswitch.org/scm/fs/freeswitch-sounds.git +else + cd $basedir/../freeswitch-sounds + git pull +fi -cd ../.. +cd $basedir/../freeswitch-sounds/sounds/trunk +perl dist.pl + +cp * freeswitch-sounds-*48000*.tar.gz $basedir/rpmbuild/SOURCES + +cd $basedir rpmbuild --define "VERSION_NUMBER $ver" \ --define "BUILD_NUMBER 1" \