debian/modules/rules.include: Adopt binnmu changes.

svn path=/dists/trunk/linux-2.6/; revision=8340
This commit is contained in:
Bastian Blank 2007-03-09 14:10:58 +00:00
parent a7f33e29ac
commit 2010eb1a98
1 changed files with 10 additions and 2 deletions

View File

@ -5,6 +5,8 @@ DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
include $(__MODULES_DIR)rules.defs
__BINNMU := $(shell dpkg-parsechangelog | sed -ne 's,^Version: .*\+b\(.*\)$$,\1,p')
BUILD_STAMP = $(STAMPS_DIR)/build-base
build: debian/control $(BUILD_STAMP)
@ -36,8 +38,14 @@ CONTROL_FILES += $(wildcard debian/arch/defines) $(wildcard debian/arch/*/define
GENCONTROL = $(__MODULES_DIR)gencontrol.py
debian/control debian/rules.gen: $(CONTROL_FILES)
if [ -f debian/control ] && [ -f debian/control.md5sum ] && [ -f debian/rules.gen ]; then \
if md5sum $^ | diff - debian/control.md5sum > /dev/null; then true; else \
$(MAKE) -f debian/rules debian/control-real; \
if [ "$(__BINNMU)" ]; then \
if ! grep -v debian/changelog debian/control.md5sum | md5sum --check - --status; then \
$(MAKE) -f debian/rules debian/control-real; \
fi \
else \
if ! md5sum --check debian/control.md5sum --status; then \
$(MAKE) -f debian/rules debian/control-real; \
fi \
fi \
else \
$(MAKE) -f debian/rules debian/control-real; \