bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib-cache.m4 readability


From: Bruno Haible
Subject: Re: gnulib-cache.m4 readability
Date: Thu, 31 Jul 2008 11:36:27 +0200
User-agent: KMail/1.5.4

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  <address@hidden>

        * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
        Reported by Paolo Bonzini <address@hidden>.

*** 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]