[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: sed porting trouble
From: |
Eric Blake |
Subject: |
Re: Fwd: sed porting trouble |
Date: |
Tue, 05 Oct 2010 14:41:42 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4 |
On 10/05/2010 02:35 PM, Bruno Haible wrote:
Thanks; this is good and would solve half of the problem. But an expansion
that contains #if and #pragma would also collide with 'make' syntax, as
explained in
<http://lists.gnu.org/archive/html/bug-gnulib/2008-10/msg00300.html>.
Maybe we're thinking about this wrong. We already use sed's r command
to inline the body of a secondary file. So, what if, instead of trying
to pass # through AC_SUBST, automake, and make, we instead just build
the minimal 4-liner file, parallel to $(CXXDEFS_H), $(ARG_NONNULL_H),
and $(WARN_ON_USE_H), and use sed's r command to pull it in at the right
place.
Then, you're back to a one-liner solution in the *.in.h files, which
expands to the appropriate number of lines in the installed replacement
header.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
- Re: Fwd: sed porting trouble, (continued)
- Re: Fwd: sed porting trouble, Jim Meyering, 2010/10/05
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/05
- Re: Fwd: sed porting trouble, Ralf Wildenhues, 2010/10/05
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/05
- Re: Fwd: sed porting trouble, Ralf Wildenhues, 2010/10/05
- Re: multiline substitutions, Bruno Haible, 2010/10/05
- Re: multiline substitutions, Paul Eggert, 2010/10/05
- Re: multiline substitutions, Ralf Wildenhues, 2010/10/06
- Re: multiline substitutions, Bruno Haible, 2010/10/06
- Re: multiline substitutions, Paolo Bonzini, 2010/10/06
- Re: Fwd: sed porting trouble,
Eric Blake <=
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/05
- Re: Fwd: sed porting trouble, Eric Blake, 2010/10/05
- Re: minimum automake version, Bruno Haible, 2010/10/05
- Re: Fwd: sed porting trouble, Simon Josefsson, 2010/10/05
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/05
- Re: Fwd: sed porting trouble, Paul Eggert, 2010/10/04
- Re: Fwd: sed porting trouble, Jim Meyering, 2010/10/05
- Re: Fwd: sed porting trouble, Paul Eggert, 2010/10/01
- Re: Fwd: sed porting trouble, Jim Meyering, 2010/10/02
- RE: Fwd: sed porting trouble, Schmitz, Joachim, 2010/10/02