[Build-common-hackers] Bug#249931: Check for compressed debian/patches/* implicitly.
Robert Millan
Robert Millan <rmh@debian.org>, 249931@bugs.debian.org
Wed, 19 May 2004 23:09:05 +0200
This is a multi-part MIME message sent by reportbug.
--===============2085053946==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: cdbs
Version: 0.4.21
Severity: wishlist
Tags: patch
Patch and subject says it all.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-1-k7
Locale: LANG=C, LC_CTYPE=C
-- no debconf information
--===============2085053946==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cdbs.diff"
--- /usr/share/cdbs/1/rules/simple-patchsys.mk 2004-02-23 04:41:26.000000000 +0100
+++ debian/simple-patchsys.mk 2004-05-20 01:10:07.000000000 +0200
@@ -35,13 +35,18 @@
_cdbs_patch_system_apply_rule := apply-patches
_cdbs_patch_system_unapply_rule := reverse-patches
-ifeq ($(DEB_PATCH_SUFFIX),)
-DEB_PATCH_SUFFIX = .patch
-endif
-ifeq ($(DEB_PATCHDIRS),)
-DEB_PATCHDIRS = debian/patches
-endif
-DEB_PATCHES = $(foreach dir,$(DEB_PATCHDIRS),$(shell echo $(wildcard $(dir)/*$(DEB_PATCH_SUFFIX)) $(wildcard $(dir)/*.diff)))
+DEB_PATCH_SUFFIX ?= .diff .diff.gz .diff.bz2 .patch .patch.gz .patch.bz2
+DEB_PATCHDIRS ?= debian/patches
+Smile :=)
+DEB_PATCHES := $(shell\
+for dir in $(DEB_PATCHDIRS) ; do \
+ for file in $$dir/* ; do \
+ for suffix in $(DEB_PATCH_SUFFIX) ; do \
+ case $$file in *$$suffix$(Smile) echo $$file ;; esac ; \
+ done ; \
+ done ; \
+done)
+
post-patches:: apply-patches
--===============2085053946==--