Ralf Wildenhues wrote:
> > +# func_remove_prefix var prefix
> > +# removes the given prefix from the value of the shell variable var.
> > +# var should be the name of a shell variable.
> > +# Its value should not contain a newline and not start or end with
> > whitespace.
> > +# prefix should not
* Bruno Haible wrote on Fri, Jan 02, 2009 at 02:26:52AM CET:
> > * gnulib-tool (func_strip): New function.
>
> You only ever need to strip the prefix _or_ the suffix, never both
> simultaneously. Therefore it will be faster to define 2 functions.
If it is ever possible that both are needed at the
Hello Ralf,
20% is a good speedup that you achieve here by use of shell built-ins instead of
subprocesses and sed invocations.
> * gnulib-tool (func_strip): New function.
You only ever need to strip the prefix _or_ the suffix, never both
simultaneously. Therefore it will be faster to define 2 fu
* gnulib-tool (func_strip): New function.
(func_get_dependencies, func_get_automake_snippet): Use it
where possible to avoid 'sed' with Posix shells.
---
gnulib-tool | 96 --
1 files changed, 66 insertions(+), 30 deletions(-)
diff --git a/