[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Status of dgit (good for NMUs and fast-forwarding Debian branches)



Ben Hutchings writes ("Re: Status of dgit (good for NMUs and fast-forwarding Debian branches)"):
> 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).

You know, the more I think about this the more I like it.

Perhaps dh_autoreconf should do this, rather than simply deleting the
files and relying on a bodge in dpkg-source.

Ian.


Reply to: