2012-05-05 23:24:46 -04:00
|
|
|
#!/bin/sh
|
2012-03-23 23:44:21 -04:00
|
|
|
##### -*- 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
|
|
|
|
|
2012-05-05 23:24:46 -04:00
|
|
|
(mkdir -p rpmbuild && cd $_ && mkdir -p SOURCES BUILD BUILDROOT i386 x86_64 SOURCES SPECS)
|
2012-03-23 23:44:21 -04:00
|
|
|
|
|
|
|
cd $src_repo/rpmbuild/SOURCES
|
|
|
|
|
|
|
|
for i in `grep 'Source..\?:' $src_repo/freeswitch.spec|grep -v Source0 |awk '{print $2}'`; do wget $i; done
|
|
|
|
|
|
|
|
cat 1>&2 <<EOF
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
Got the Extra Source Tarballs We Need....
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
EOF
|