Il giorno Mon, 11 Feb 2008 15:19:08 +0100 Daniel Leidert <[EMAIL PROTECTED]> ha scritto:
> Copy the config.* scripts after the clean target has been called (e.g. > in the config.status target) then they are simply not part of the > diff.gz. Of course they would be after a second build run. If you care > and if you want to avoid this: preserve the original config.* scripts > and put them back in the clean-target. This increases the whole > debian/rules file for around 4 lines. > > This *is* much more easier than any other suggestion I read in this > thread. Well, I tried to do that in one of my packages: ---8<--- configure: [ ! -f $(CURDIR)/config.sub ] || \ mv $(CURDIR)/config.sub $(CURDIR)/config.sub.backup [ ! -f $(CURDIR)/config.guess ] || \ mv $(CURDIR)/config.guess $(CURDIR)/config.guess.backup [ ! -r /usr/share/misc/config.sub ] || \ cp /usr/share/misc/config.sub $(CURDIR)/ [ ! -r /usr/share/misc/config.guess ] || \ cp /usr/share/misc/config.guess $(CURDIR)/ ./configure --host=... ... clean: dh_testdir ... [ ! -f $(CURDIR)/config.sub.backup ] || \ mv $(CURDIR)/config.sub.backup $(CURDIR)/config.sub [ ! -f $(CURDIR)/config.guess.backup ] || \ mv $(CURDIR)/config.guess.backup $(CURDIR)/config.guess --->8--- This seems to me more hackish than it should; is there a cleaner way to do it (maybe I'm just complicating myself and don't see The Easy Way [1])? Cheers, David [1] I know that using "[ ! test ] || ..." is pretty awkward, but it didn't work with "[ test ] &&". Maybe "&&" should be escaped somehow? I don't really know. -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
signature.asc
Description: PGP signature