1 |
Mike Frysinger <vapier@g.o> writes: |
2 |
> neither of those are terribly compelling and can be written in sed. |
3 |
> you want to do a match & replace in that just as easily. roughly: |
4 |
> sed -i \ |
5 |
> -e '/{[[:space:]]*deps[[:space:]]*,\/,\/}/{s:.*:{deps, []}:}' \ |
6 |
> foo |
7 |
|
8 |
Oh, I know how to use sed&replace on a single line. What if deps tuple |
9 |
spans over multiple line which is usually the case? I have an idea how |
10 |
to do it in sed but awk is much simpler to approach this. |
11 |
|
12 |
> because no one else is using it or cares about it. we've gotten by |
13 |
> for more than 10 years at this point w/out someone asking for this. |
14 |
|
15 |
Or met the same argument and given up... ;-) |
16 |
|
17 |
> if you really want it in rebar, then just DEPEND on gawk and use the |
18 |
> inplace flag in your code. then there's no need for eawk anywhere. |
19 |
|
20 |
Already did that. At the beggining I wanted to use sponge from moreutils |
21 |
but I assumed it's not desired to depend on some tool not in @system or |
22 |
specific gawk implementation and version (which is not even stabilized |
23 |
yet) just for eclass/ebuild internals. But apparently it's fine, so I |
24 |
did that, as I've said in some other response. |
25 |
|
26 |
-- |
27 |
Amadeusz Żołnowski |