On Wed, 2013-09-18 at 14:16 +0100, Ian Jackson wrote: > Julien Cristau writes ("Re: Status of dgit (good for NMUs and fast-forwarding Debian branches)"): > > No, I mean the upstream tarball contains autotools-generated files that > > debian/rules deletes (and that aren't in my, or upstream's, git tree). > > dpkg-source ignores removals when generating the debian diff, so they're > > extracted by dpkg-source -x, but since the first step after that is > > pretty much always debian/rules clean, they're irrelevant. > > If your source package contains the files, and your git tree does too, > then you will find that debian/rules clean generates a dirty git tree. > How do you deal with this problem at the moment ? [...] Example from sgt-puzzles: override_dh_auto_clean: ! [ -f Makefile ] || $(MAKE) clean $(MAKE) -f Makefile.doc clean if [ -d .git ]; then \ git checkout HEAD $(AUTOGEN_FILES); \ else \ rm -f $(AUTOGEN_FILES); \ fi rm -f po dh_clean debian/substvars gamedesc.txt version2.def (I'm not claiming this is a good example). Ben. -- Ben Hutchings The two most common things in the universe are hydrogen and stupidity.
Description: This is a digitally signed message part