[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: Too many files in AC_OUTPUT cause M4 error
From: |
Alexandre Duret-Lutz |
Subject: |
Re: Patch: Too many files in AC_OUTPUT cause M4 error |
Date: |
Tue, 26 Nov 2002 21:19:04 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/20.7 (i386-debian-linux-gnu) |
[M-F-T: address@hidden
>>> "Martin" == Martin Frydl <address@hidden> writes:
[...]
Martin> I've created a patch which is aware of M4 problem and
Martin> separates the task into two expressions - first removes the
Martin> terminating space, then strips the leading one and puts brackets
Martin> around.
[...]
Martin> + [at_patsubst(at_patsubst(at_patsubst(at_patsubst([[[[$1]]]],
[\\\n]),
Martin> + [[\n\t ]+], [ ]),
Martin> + [ *\(.\)$],[\1]),
Martin> + [^ *\(.*\)], [[\1]])])
This doesn't seem to do what you want. `[ *\(.\)$],[\1]' will leave the
last trailing space, or strip non trailing whitespaces.
How about something like
[at_patsubst(at_patsubst(at_patsubst(at_patsubst([[[[$1]]]], [\\\n]),
[[\n\t ]+], [ ]),
[ *$]),
[^ *\(.*\)], [[\1]])])
--
Alexandre Duret-Lutz