[Pkg-voip-commits] r1289 - zaptel/trunk/debian

Tzafrir Cohen tzafrir-guest at costa.debian.org
Thu Feb 16 10:30:06 UTC 2006


Author: tzafrir-guest
Date: 2006-02-16 10:30:04 +0000 (Thu, 16 Feb 2006)
New Revision: 1289

Added:
   zaptel/trunk/debian/modulestest
Log:
A sample svn-postbuild script to check that zaptel-modules can build


Added: zaptel/trunk/debian/modulestest
===================================================================
--- zaptel/trunk/debian/modulestest	2006-02-16 09:01:47 UTC (rev 1288)
+++ zaptel/trunk/debian/modulestest	2006-02-16 10:30:04 UTC (rev 1289)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# debian/modulestest: a postbuild script to build zaptel modules
+# example usage:
+#  
+#  svn-buildpackage -rfakeroot --svn-postbuild=debian/modulestest --svn-ignore-new --svn-lintian -uc -us
+
+# At least one of the following two must be set to a sensible value:
+# If both are empty, the script does nothing useful)
+#
+# kernel versions: Comma-separated. Use those if you have their
+# kernel-headers/linux-headers packages installed
+#
+KERNEL_HEADERS=2.4.27-2-386,2.6.8-2-686-smp
+
+# Full pathes to trees:
+# Use this to provide a full path to a custom kernel tree:
+KERNEL_SOURCES=$HOME/Proj/Debs/Kernel/SwSusp/linux-2.6.15-rc5
+
+if [ "$KERNEL_HEADERS" != '' ]; then hdrs_sw="-l $KERNEL_HEADERS"; fi
+if [ "$KERNEL_SOURCES" != '' ]; then srcs_sw="-k $KERNEL_SOURCES"; fi
+
+# must be absolute for m-a ta accept TARBALL:
+TOP_DIR=$PWD/../
+MODS_DIR=$TOP_DIR/modules
+TAR_BALL=$MODS_DIR/usr/src/zaptel.tar.bz2
+DEB=$TOP_DIR/$PACKAGE-source_${TAG_VERSION}_all.deb
+LOG_FILE=$TOP_DIR/$PACKAGE-modules-build-$TAG_VERSION.log
+
+rm -f $LOG_FILE
+dpkg -x $DEB $MODS_DIR
+
+rm -f $TOP_DIR/
+if [ "$hdrs_sw" != '' ]; then
+  TARBALL=$TAR_BALL m-a -u $TOP_DIR -t -i -f $hdrs_sw build $PACKAGE >>$LOG_FILE
+fi
+if [ "$srcs_sw" != '' ]; then
+  TARBALL=$TAR_BALL m-a -u $TOP_DIR -t -i -f $srcs_sw build $PACKAGE >>$LOG_FILE
+fi
+
+ls -l $TOP_DIR/$PACKAGE-modules-*$TAG_VERSION*.deb
+


Property changes on: zaptel/trunk/debian/modulestest
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-voip-commits mailing list