On Sun, 13 Jul 2008, Russ Allbery wrote:
> Raphael Hertzog <[EMAIL PROTECTED]> writes:
> > You can use the following command to easily update all the patches
> > that use the '-p0' option:
> > awk '{ if ($2 == "-p0") print $1 }' debian/patches/series | while read f; 
> > do perl -pi -e 's|^--- (?:\./)?|--- a/|; s|^\+\+\+ (?:\./)?|+++ b/|;' 
> > debian/patches/$f ; done
> 
> Just FYI, a simple quilt refresh -p1 will convert a patch as well.  I
> used:

I discovered this in the mean time and I even advertised it on
-devel-announce:
http://lists.debian.org/debian-devel-announce/2008/07/msg00000.html

> for p in `grep -h -- -p0 debian/patches/series | awk '{print $1}'`; do
>     quilt push $p
>     quilt refresh -p1
> done
> quilt pop -a

I suggested a shorter solution: 
quilt pop -a; while quilt push; do quilt refresh -p1; done

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to