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

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

 



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@xxxxxxxxxx       nor Safety."  --  Benjamin Franklin, 1759
PGP fingerprint:      C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux