Bug#424855: Apply patches up to a specific patch
Package: gcc-4.2
Version: 4.2-20070405
Severity: wishlist
Hi,
Attached is a little makefile that will allow one to apply all patches
in the Debian gcc package up to a named patch.
Usage:
make -f patch-Makefile PATCH_TO=m68k-save_pic patch-to-specific
will apply all patches up to, but not including m68k-save_pic.
It'd be nice if this target would be incorporated into rules.patch or
some such.
--
Shaw's Principle:
Build a system that even a fool can use, and only a fool will
want to use it.
include debian/rules.defs
include debian/rules.unpack
include debian/rules.patch
firsthalf=true
patch-to-specific: $(foreach patch, $(debian_patches),$(if $(firsthalf),$(if $(findstring $(PATCH_TO),$(patch)),$(eval firsthalf=),$(patch_stamp)-$(patch)),))
Reply to: