[Build-common-hackers] Bug#272758: test case for autogen

Robert Millan Robert Millan <rmh@debian.org>, 272758@bugs.debian.org
Wed, 22 Sep 2004 16:10:28 +0200


--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Attached a small patch to add a test case for autogen of debian/control by
using cdbs itself.

-- 
 .''`.   Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S)
: :' :
`. `'    http://www.debian.org/ports/kfreebsd-gnu
  `-

--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="autogen_test.bash"

#!/bin/bash -e

cp debian/control{,.in}
cat $0 | patch -p1
exit 0

diff -ur cdbs-0.4.22.old/debian/control.in cdbs-0.4.22/debian/control.in
--- cdbs-0.4.22.old/debian/control.in	2004-09-22 16:07:42.000000000 +0200
+++ cdbs-0.4.22/debian/control.in	2004-09-22 16:01:21.000000000 +0200
@@ -2,7 +2,7 @@
 Section: devel
 Priority: optional
 Maintainer: CDBS Hackers <build-common-hackers@lists.alioth.debian.org>
-Build-Depends-Indep: debhelper (>= 4.1.0),
+Build-Depends-Indep: @cdbs@,
  docbook-xsl, xsltproc, springgraph, ocaml-native-compilers | ocaml,
  realpath, fakeroot, python-dev, 
 Build-Conflicts-Indep: autoconf (<< 2.54)
diff -ur cdbs-0.4.22.old/debian/rules cdbs-0.4.22/debian/rules
--- cdbs-0.4.22.old/debian/rules	2004-02-15 07:13:31.000000000 +0100
+++ cdbs-0.4.22/debian/rules	2004-09-22 16:03:07.000000000 +0200
@@ -27,6 +27,7 @@
 DEB_ARCH_PACKAGES :=
 DEB_PACKAGES := $(DEB_INDEP_PACKAGES)
 DEB_ALL_PACKAGES := $(DEB_PACKAGES)
+DEB_AUTO_UPDATE_DEBIAN_CONTROL	:= yes
 include 1/rules/buildvars.mk.in
 include 1/rules/debhelper.mk.in
 include 1/class/autotools.mk.in

--IJpNTDwzlM2Ie8A6--