[svn-commits] pabelanger: testsuite/bamboo/trunk r3052 - /bamboo/trunk/bin/ppa_script.sh

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Feb 17 14:06:51 CST 2012


Author: pabelanger
Date: Fri Feb 17 14:06:48 2012
New Revision: 3052

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3052
Log:
NOEPOACH

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=3052&r1=3051&r2=3052
==============================================================================
--- bamboo/trunk/bin/ppa_script.sh (original)
+++ bamboo/trunk/bin/ppa_script.sh Fri Feb 17 14:06:48 2012
@@ -4,18 +4,19 @@
 TARBALLS=tarballs
 SERIES=${SERIES:-precise}
 VERSION=$(cat ${TARBALLS}/.version)
-PKGVERSION="1:1.8~$(echo ${VERSION//-/.})-1"
+PKGVERSION="1:1.8~$(echo ${VERSION//-/.})"
+NOEPOCH_VERSION="$(echo ${VERSION} | cut -d':' -f 2)"
 
 if [ ! -d "${BUILD_AREA}" ]; then
 	mkdir ${BUILD_AREA}
 fi
 
-if [ ! -f "${TARBALLS}/asterisk-1.8~${VERSION,,}.tar.gz" ]; then
-	echo "missing tarball: asterisk-1.8~${VERSION,,}.tar.gz"
+if [ ! -f "${TARBALLS}/asterisk-${NOEPOCH_VERSION,,}.tar.gz" ]; then
+	echo "missing tarball: asterisk-${NOEPOCH_VERSION,,}.tar.gz"
 fi
 
 cd ${TARBALLS}
-ln -s asterisk-1.8~${VERSION,,}.tar.gz asterisk_1.8~${VERSION,,}.orig.tar.gz
+ln -s asterisk-${NOEPOCH_VERSION,,}.tar.gz asterisk_${NOEPOCH_VERSION,,}.orig.tar.gz
 cd ..
 
 svn co http://svn.asterisk.org/svn/dpkg/asterisk/trunk asterisk




More information about the svn-commits mailing list