[asterisk-commits] pabelanger: testsuite/bamboo/trunk r3069 - /bamboo/trunk/bin/ppa_script.sh
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 27 15:57:26 CST 2012
Author: pabelanger
Date: Mon Feb 27 15:57:23 2012
New Revision: 3069
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3069
Log:
Remove some hardcoded 'asterisk' values
Modified:
bamboo/trunk/bin/ppa_script.sh
Modified: bamboo/trunk/bin/ppa_script.sh
URL: http://svnview.digium.com/svn/testsuite/bamboo/trunk/bin/ppa_script.sh?view=diff&rev=3069&r1=3068&r2=3069
==============================================================================
--- bamboo/trunk/bin/ppa_script.sh (original)
+++ bamboo/trunk/bin/ppa_script.sh Mon Feb 27 15:57:23 2012
@@ -1,6 +1,9 @@
#!/bin/bash
-set -e
+if [ -z "$PROJECT" ]; then
+ echo '$PROJECT not set.'
+ exit 1
+fi
BUILD_AREA=build-area
TARBALLS=tarballs
@@ -13,16 +16,16 @@
mkdir ${BUILD_AREA}
fi
-if [ ! -f "${TARBALLS}/asterisk-${NOEPOCH_PKGVERSION,,}.tar.gz" ]; then
- echo "missing tarball: asterisk-${NOEPOCH_PKGVERSION,,}.tar.gz"
+if [ ! -f "${TARBALLS}/${PROJECT}-${NOEPOCH_PKGVERSION,,}.tar.gz" ]; then
+ echo "missing tarball: ${PROJECT}-${NOEPOCH_PKGVERSION,,}.tar.gz"
fi
cd ${TARBALLS}
-ln -s asterisk-${NOEPOCH_PKGVERSION,,}.tar.gz asterisk_${NOEPOCH_PKGVERSION,,}.orig.tar.gz
+ln -s ${PROJECT}-${NOEPOCH_PKGVERSION,,}.tar.gz asterisk_${NOEPOCH_PKGVERSION,,}.orig.tar.gz
cd ..
-svn co http://svn.asterisk.org/svn/dpkg/asterisk/trunk asterisk
-cd asterisk
+svn co http://svn.asterisk.org/svn/dpkg/asterisk/trunk ${PROJECT}
+cd ${PROJECT}
export DEBFULLNAME="Asterisk Packaging Team"
export DEBEMAIL="packages at asterisk.org"
@@ -38,7 +41,7 @@
dch -b --force-distribution --v "${PKGVERSION,,}-1~ppa1~${series}" "Automated PPA build." -D ${series}
svn-buildpackage -S ${SIGNPPA} --svn-ignore-new --svn-builder=debuild --svn-noautodch
- dput --force ${PPA} "../${BUILD_AREA}/asterisk_${NOEPOCH_PKGVERSION,,}-1~ppa1~${series}_source.changes"
+ dput --force ${PPA} "../${BUILD_AREA}/${PROJECT}_${NOEPOCH_PKGVERSION,,}-1~ppa1~${series}_source.changes"
svn revert -R .
done
More information about the asterisk-commits
mailing list