1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-04 17:51:03 +00:00

automate this a little more

This commit is contained in:
Ken Rice 2014-09-12 00:04:11 +04:00
parent 5bd35471f7
commit 6791c4aa69

@ -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" \