Re: autoreconf and quilt
On Sat, Oct 11, 2008 at 02:35:20PM +0200, Vincent Danjean wrote:
> Sylvain Beucler wrote:
> > On Sat, Oct 11, 2008 at 01:36:28PM +0200, David Paleino wrote:
> >> On Sat, 11 Oct 2008 13:10:07 +0200, Sylvain Beucler wrote:
> >>
> >>> In this case though, a second build will show changes in the diff
> >>> outside of debian/ (removed files).
> >> No. Removed files don't show up in diff. :)
> >
> > Ah, my bad.
> >
> > They still add noise in my git working copy though ;)
>
> I've this in several debian/rules of my packages:
> clean:
> ...
> # if this is a git repository, restore removed files that would have
> # been ignored by dpkg-source
> -test -d .git && git-checkout -- $$(git-status | \
> sed -e '/^#[[:space:]]*deleted:[[:space:]]*/s/^#[[:space:]]*deleted:[[:space:]]*//p;d' | \
> grep -v '^debian/')
Thanks, that works fine !
--
Sylvain
Reply to: