epel 6 fedpkg build or koji scratch builds failing — I'm stumped

Nils Philippsen nils at redhat.com
Fri Nov 25 17:49:13 UTC 2011


On Thu, 2011-11-24 at 17:26 +0100, Jim Meyering wrote:
> config.h:
>         rm -f $@ $@-t;							\

I'd rather not remove the target right at the beginning...

> 	{								\
> 	  echo '/* text added by Makefile target config.h */';		\
> 	  echo '#define PPTP_LINUX_VERSION "$(VERSION)$(RELEASE)"';	\
> 	  echo '#define PPPD_BINARY "$(PPPD)"';				\
> 	  echo '#define IP_BINARY "$(IP)"';				\
> 	} > $@-t && chmod a-w $@-t && mv $@-t $@

... shouldn't a "mv -f ..." do the trick here?

Non-destructiveness and all that.

Nils
-- 
Nils Philippsen      "Those who would give up Essential Liberty to purchase 
Red Hat               a little Temporary Safety, deserve neither Liberty
nils at redhat.com       nor Safety."  --  Benjamin Franklin, 1759
PGP fingerprint:      C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011



More information about the devel mailing list