mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-04 19:31:56 +00:00
ci: add continuous integration helper scripts
This commit is contained in:
Executable
+37
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
##### -*- 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
|
||||
|
||||
ver="1.0.8"
|
||||
|
||||
cd rpmbuild/SOURCES
|
||||
|
||||
wget http://files.freeswitch.org/freeswitch-sounds-music-8000-$ver.tar.gz
|
||||
wget http://files.freeswitch.org/freeswitch-sounds-music-16000-$ver.tar.gz
|
||||
wget http://files.freeswitch.org/freeswitch-sounds-music-32000-$ver.tar.gz
|
||||
wget http://files.freeswitch.org/freeswitch-sounds-music-48000-$ver.tar.gz
|
||||
|
||||
cd ../..
|
||||
|
||||
rpmbuild --define "VERSION_NUMBER $ver" \
|
||||
--define "BUILD_NUMBER 1" \
|
||||
--define "_topdir %(pwd)/rpmbuild" \
|
||||
--define "_rpmdir %{_topdir}" \
|
||||
--define "_srcrpmdir %{_topdir}" \
|
||||
-ba freeswitch-sounds-music.spec
|
||||
|
||||
mkdir $src_repo/RPMS
|
||||
mv $src_repo/rpmbuild/*/*.rpm $src_repo/RPMS/.
|
||||
|
||||
cat 1>&2 <<EOF
|
||||
----------------------------------------------------------------------
|
||||
The Sound RPMs have been rolled
|
||||
----------------------------------------------------------------------
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user