|
From: | Jan Djärv |
Subject: | Re: Pathnames with two (or more) slashes in Makefile.c |
Date: | Tue, 30 Jan 2007 11:26:49 +0100 |
User-agent: | Thunderbird 1.5.0.9 (X11/20070102) |
Sascha Wilde skrev:
Jan Djärv <address@hidden> wrote:Sascha Wilde skrev:[...]--- a/configure.in +++ b/configure.in @@ -3256,6 +3256,7 @@ < Makefile.c > junk1.c sed -e '1,/start of cpp stuff/d'\ -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ + -e 's,\(#.*\)//\+,\1/,g' \ < Makefile.c > junk.c $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \sed -e 's/^ / /' -e '/^#/d' -e '/^[Why is there a \+?because we not only want to match // but also ///, //// and so forth...
Most sed:s out there don't support \+, it is a GNU extension. We can't use that. You would have to do ///*.
Jan D.
[Prev in Thread] | Current Thread | [Next in Thread] |