[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pathnames with two (or more) slashes in Makefile.c
From: |
Sascha Wilde |
Subject: |
Re: Pathnames with two (or more) slashes in Makefile.c |
Date: |
Tue, 30 Jan 2007 12:04:28 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) |
Jan Djärv <address@hidden> wrote:
> 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 ///*.
Ok, so lets use ///*. :-)
cheers
sascha
--
"Anyone who slaps a 'this page is best viewed with Browser X' label on a Web
page appears to be yearning for the bad old days, before the Web, when you had
very little chance of reading a document written on another computer, another
word processor, or another network." -- Tim Berners-Lee, July 1996
- Re: Pathnames with two (or more) slashes in Makefile.c, (continued)
- Re: Pathnames with two (or more) slashes in Makefile.c, Sascha Wilde, 2007/01/29
- Re: Pathnames with two (or more) slashes in Makefile.c, Jan Djärv, 2007/01/30
- Re: Pathnames with two (or more) slashes in Makefile.c, Sascha Wilde, 2007/01/30
- Re: Pathnames with two (or more) slashes in Makefile.c, Sascha Wilde, 2007/01/30
- Re: Pathnames with two (or more) slashes in Makefile.c, Sascha Wilde, 2007/01/31
- Re: Pathnames with two (or more) slashes in Makefile.c, Jan Djärv, 2007/01/31
- Re: Pathnames with two (or more) slashes in Makefile.c, Sascha Wilde, 2007/01/31
- Re: Pathnames with two (or more) slashes in Makefile.c, Jan Djärv, 2007/01/30
- Re: Pathnames with two (or more) slashes in Makefile.c, Sascha Wilde, 2007/01/30
- Re: Pathnames with two (or more) slashes in Makefile.c, Jan Djärv, 2007/01/30
- Re: Pathnames with two (or more) slashes in Makefile.c,
Sascha Wilde <=