Paolo Bonzini wrote:
> > /gl_MODULES(/ {
>
> you would need a "ta" here too, to reset the flag.
>
> > :a
Yes. It is unprobable that there will be a comment on a gl_MODULES line,
but it's more robust to do as you say. Applied.
> > s/)/)/
> > tb
> > N
> > ba
> > :b
> > s,^.*gl_MODULES([[ ]*\([^])]*\).*$,cached_specified_modules="\1",p
> > }
>
> You can also do something like
>
> :a
> /gl_[A-Z][A-Z]*([^)]*$/ N
> /)/! ba
>
> at the top, which would apply to all gl_SOMETHING macros.
This is currently not needed. But thanks anyway.
Bruno
2008-07-31 Bruno Haible <[EMAIL PROTECTED]>
* gnulib-tool (func_import): Make change from 2008-06-23 more robust.
Reported by Paolo Bonzini <[EMAIL PROTECTED]>.
*** gnulib-tool.orig 2008-07-31 11:31:32.000000000 +0200
--- gnulib-tool 2008-07-31 11:22:47.000000000 +0200
***************
*** 2197,2202 ****
--- 2197,2203 ----
s,^.*gl_LOCAL_DIR([[ ]*\([^])]*\).*$,cached_local_gnulib_dir="\1",p
}
/gl_MODULES(/ {
+ ta
:a
s/)/)/
tb