Ühel kenal päeval, K, 18.05.2016 kell 22:25, kirjutas aide...@gentoo.org: > From: Amadeusz Żołnowski <aide...@gentoo.org> > > awk doesn't have the -i option like sed and if editing file in place > is > desired, additional steps are required. eawk uses tmp file to make it > look to the caller editing happens in place. > --- > eclass/eutils.eclass | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass > index dbedffe..e331f1b 100644 > --- a/eclass/eutils.eclass > +++ b/eclass/eutils.eclass > @@ -20,6 +20,19 @@ _EUTILS_ECLASS=1 > > inherit multilib toolchain-funcs > > +# @FUNCTION: eawk > +# @USAGE: <file> <args> > +# @DESCRIPTION: > +# Edit file <file> in place with awk. Pass all arguments following > <file> to > +# awk. >
I would like if such a function would explicitly document that calling this function means the caller should DEPEND on an awk provider. Similarly, I would like that all ebuild that call 'sed' actually DEPEND on sed, not just half of them. I would also like that no ebuild would assume packages in @system to be present, beyond those dictated by PMS (unpackers and such). Mart