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/')

  Regards,
    Vincent

-- 
Vincent Danjean                 Adresse: Laboratoire d'Informatique de Grenoble
Téléphone:  +33 4 76 61 20 11            ENSIMAG - antenne de Montbonnot
Fax:        +33 4 76 61 20 99            ZIRST 51, avenue Jean Kuntzmann
Email: [EMAIL PROTECTED]           38330 Montbonnot Saint Martin


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

Reply via email to