build: added freeswitch-config-rayo package and script to build it

This commit is contained in:
Chris Rienzo
2013-12-09 17:41:01 -05:00
parent 72aea1f53f
commit d9a8dd0bb6
2 changed files with 205 additions and 0 deletions

26
scripts/ci/config-rayo.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
src_repo="$(pwd)"
if [ ! -d .git ]; then
echo "error: must be run from within the top level of a FreeSWITCH git tree." 1>&2
exit 1;
fi
rpmbuild --define "VERSION_NUMBER $1" \
--define "BUILD_NUMBER $2" \
--define "_topdir %(pwd)/rpmbuild" \
--define "_rpmdir %{_topdir}" \
--define "_srcrpmdir %{_topdir}" \
-ba freeswitch-config-rayo.spec
mkdir $src_repo/RPMS
mv $src_repo/rpmbuild/*/*.rpm $src_repo/RPMS/.
cat 1>&2 <<EOF
----------------------------------------------------------------------
The Rayo configuration RPMs have been rolled
----------------------------------------------------------------------
EOF