[Pkg-voip-commits] [dahdi-linux] 05/12: Fix of moduletest script for gbp

tzafrir at debian.org tzafrir at debian.org
Fri Aug 14 09:41:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-linux.

commit 837708754191c1fb4f320f1099b651939af82700
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Wed Aug 12 11:35:00 2015 +0200

    Fix of moduletest script for gbp
---
 debian/modulestest | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/debian/modulestest b/debian/modulestest
index 57ef3e0..8846f9b 100755
--- a/debian/modulestest
+++ b/debian/modulestest
@@ -3,7 +3,7 @@
 # debian/modulestest: a postbuild script to build dahdi modules
 # example usage:
 #  
-#  svn-buildpackage --svn-postbuild='debian/modulestest -r' --svn-ignore-new 
+#  gbp buildpackage --git-postbuild='debian/modulestest -r'
 #
 #  debuild  --post-dpkg-buildpackage-hook="$PWD/debian/modulestest -d %v -r"
 #
@@ -55,20 +55,21 @@ echo "Building for: Headers: $KERNEL_HEADERS, Sources: $KERNEL_SOURCES"
 if [ "$KERNEL_HEADERS" != '' ]; then hdrs_sw="-l $KERNEL_HEADERS"; fi
 if [ "$KERNEL_SOURCES" != '' ]; then srcs_sw="-k $KERNEL_SOURCES"; fi
 
+DEB_NAME=`awk '/dahdi-source_/ {print $3}' $GBP_CHANGES_FILE | head -n1`
+DEB_VERSION=`awk -F: '/^Version:/ {print $3}' $GBP_CHANGES_FILE`
 # must be absolute for m-a ta accept TARBALL:
 # Also note that $PWD is ugly and is about to be deleted. We need
 # $PWD/.. 
+
 if [ "$DEBUILD_VERSION" != '' ]; then
 	TOP_DIR="$PWD"
-	TAG_VERSION=`echo $DEBUILD_VERSION | sed -e 's/.*://'`
 else
 	TOP_DIR=`dirname $PWD`
 fi
 MODS_DIR=$TOP_DIR/modules
 SRC_DIR=$MODS_DIR/usr/src
 TAR_BALL=$SRC_DIR/$PACKAGE.tar.bz2
-DEB_VERSION=${TAG_VERSION#*:}
-DEB=$TOP_DIR/$PACKAGE-source_${DEB_VERSION}_all.deb
+DEB="$TOP_DIR/$DEB_NAME"
 LOG_FILE=$TOP_DIR/$PACKAGE-modules-build-$DEB_VERSION.log
 
 rm -f $LOG_FILE

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-linux.git



More information about the Pkg-voip-commits mailing list