]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
automate this a little more
authorKen Rice <krice@freeswitch.org>
Thu, 11 Sep 2014 20:04:11 +0000 (00:04 +0400)
committerKen Rice <krice@freeswitch.org>
Thu, 11 Sep 2014 20:06:21 +0000 (00:06 +0400)
scripts/ci/sounds-en-us-callie.sh

index 32fbc0a4001e6c310d2f62d856ac33a843d799a1..3df278c621930a18a39d3e592dc3347d5bdf1c2b 100755 (executable)
@@ -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" \