On Mon, Nov 23, 2009 at 09:50:15AM +0100, Raphael Hertzog wrote: > For each patch: > - apply patch > - dpkg-buildpackage -S > - rename debian/patches/debian-changes-<ver> into something else > and edit its headers > - fix debian/patches/series > > Note: this works only if quilt is not installed (or if you ensure > dpkg-source is called with --without-quilt which you currently can't pass > via dpkg-buildpackage).
JFTR, is also works with quilt installed, given that you don't rename applied patches. The following shell function automates the required quilt pop/push and the adjustment of the series file: dquilt-rename() { ( source $HOME/.quiltrc; cd "${QUILT_PATCHES:-patches}"; j=`quilt applied | wc -l`; quilt pop -a; if [ -f "$1" ] && ! [ -f "$2" ]; then mv "$1" "$2"; sed -i "s/^$1\$/$2/" series; fi; for i in $(seq $j); do quilt push || [ $? eq 2 ] || return 1; done ) } I just wrote it and only ran it once, so don't expect it to be mature. It requires the snippet given in /usr/share/doc/quilt/README.source as $HOME/.quiltrc. Regards Carsten -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org