1 |
Ühel kenal päeval, K, 18.05.2016 kell 22:25, kirjutas |
2 |
aidecoe@g.o: |
3 |
> From: Amadeusz Żołnowski <aidecoe@g.o> |
4 |
> |
5 |
> awk doesn't have the -i option like sed and if editing file in place |
6 |
> is |
7 |
> desired, additional steps are required. eawk uses tmp file to make it |
8 |
> look to the caller editing happens in place. |
9 |
> --- |
10 |
> eclass/eutils.eclass | 13 +++++++++++++ |
11 |
> 1 file changed, 13 insertions(+) |
12 |
> |
13 |
> diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass |
14 |
> index dbedffe..e331f1b 100644 |
15 |
> --- a/eclass/eutils.eclass |
16 |
> +++ b/eclass/eutils.eclass |
17 |
> @@ -20,6 +20,19 @@ _EUTILS_ECLASS=1 |
18 |
> |
19 |
> inherit multilib toolchain-funcs |
20 |
> |
21 |
> +# @FUNCTION: eawk |
22 |
> +# @USAGE: <file> <args> |
23 |
> +# @DESCRIPTION: |
24 |
> +# Edit file <file> in place with awk. Pass all arguments following |
25 |
> <file> to |
26 |
> +# awk. |
27 |
> |
28 |
|
29 |
I would like if such a function would explicitly document that calling |
30 |
this function means the caller should DEPEND on an awk provider. |
31 |
Similarly, I would like that all ebuild that call 'sed' actually DEPEND |
32 |
on sed, not just half of them. |
33 |
I would also like that no ebuild would assume packages in @system to be |
34 |
present, beyond those dictated by PMS (unpackers and such). |
35 |
|
36 |
Mart |