[Pkg-voip-commits] r7360 - in /dahdi-linux/trunk/debian: changelog modulestest
tzafrir-guest at alioth.debian.org
tzafrir-guest at alioth.debian.org
Sat Jun 13 14:11:38 UTC 2009
Author: tzafrir-guest
Date: Sat Jun 13 14:11:23 2009
New Revision: 7360
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=7360
Log:
modulestest: add -v to support building from debuild.
Modified:
dahdi-linux/trunk/debian/changelog
dahdi-linux/trunk/debian/modulestest
Modified: dahdi-linux/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/dahdi-linux/trunk/debian/changelog?rev=7360&op=diff
==============================================================================
--- dahdi-linux/trunk/debian/changelog (original)
+++ dahdi-linux/trunk/debian/changelog Sat Jun 13 14:11:23 2009
@@ -8,6 +8,7 @@
Doubles OSLEC's performance:
- Adds patches mmx_auto and mmx_fix from upstream bug report.
- Fixes patch oslec_kbuild to use it if enabled.
+ * modulestest: add -v to support building from debuild.
-- Tzafrir Cohen <tzafrir.cohen at xorcom.com> Wed, 10 Jun 2009 15:59:34 +0300
Modified: dahdi-linux/trunk/debian/modulestest
URL: http://svn.debian.org/wsvn/pkg-voip/dahdi-linux/trunk/debian/modulestest?rev=7360&op=diff
==============================================================================
--- dahdi-linux/trunk/debian/modulestest (original)
+++ dahdi-linux/trunk/debian/modulestest Sat Jun 13 14:11:23 2009
@@ -4,7 +4,9 @@
# example usage:
#
# svn-buildpackage --svn-postbuild='debian/modulestest -r' --svn-ignore-new
-
+#
+# debuild --post-dpkg-buildpackage-hook="$PWD/debian/modulestest -d %v -r"
+#
# At least one of the following two must be set to a sensible value:
# If both are empty, the script does nothing useful)
#
@@ -20,6 +22,7 @@
#KERNEL_SOURCES=$HOME/Proj/Debs/Kernel/SwSusp/linux-2.6.15-rc5
KERNEL_HEADERS=
KERNEL_SOURCES=
+DEBUILD_VERSION=
# run module-asustant with environment params that will generate
# .changes files even without signing
MODASS="env SIGNCHANGES=1 DEBSIGNCOMMAND=not_an_executable m-a"
@@ -30,7 +33,7 @@
set -- $MODULESTEST_ARGS
fi
-while getopts ah:rs:t arg
+while getopts ah:rs:tv: arg
do
case "$arg" in
a) # All of the kernel-headers packages installed:
@@ -42,6 +45,7 @@
t) # TODO: make this test per-distro or something
KERNEL_HEADERS=2.4.27-2-386,2.6.8-2-686-smp
;;
+ v) DEBUILD_VERSION=$OPTARG;;
esac
done
shift $(( $OPTIND-1 ))
@@ -54,7 +58,12 @@
# must be absolute for m-a ta accept TARBALL:
# Also note that $PWD is ugly and is about to be deleted. We need
# $PWD/..
-TOP_DIR=`dirname $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
TAR_BALL=$MODS_DIR/usr/src/$PACKAGE.tar.bz2
DEB=$TOP_DIR/$PACKAGE-source_${TAG_VERSION}_all.deb
More information about the Pkg-voip-commits
mailing list