From: Vin Shelton <acs@alumni.princeton.edu>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: PATCH: zsh/system library
Date: Sun, 07 Sep 2003 00:03:01 -0400 [thread overview]
Message-ID: <m3ad9hnt3e.fsf@zion.rcn.com> (raw)
In-Reply-To: <1030902151802.ZM17604@candle.brasslantern.com> (Bart Schaefer's message of "Tue, 2 Sep 2003 15:18:02 +0000")
Bart Schaefer <schaefer@brasslantern.com> writes:
> On Sep 2, 10:56am, Peter Stephenson wrote:
> } Subject: Re: PATCH: zsh/system library
> }
> } sed -n -e 's/^#line[ ].*\"\(.*\)\"/\2/p' \
> } -e 's/^#[ ].*\"\(.*\)\"/\2/p' |
> }
> } should work.
>
> Except that those should be \1 instead of \2 in that formulation.
Here is the patch:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/zsh/zsh/ChangeLog,v
retrieving revision 1.2089
diff -a -u -u -0 -r1.2089 ChangeLog
--- ChangeLog 3 Sep 2003 14:07:25 -0000 1.2089
+++ ChangeLog 7 Sep 2003 04:03:38 -0000
@@ -0,0 +1,4 @@
+2003-09-06 Vin Shelton <acs@alumni.princeton.edu>
+
+ * zshconfig.ac: Make sed grok icc's cpp output.
+
Index: zshconfig.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/zshconfig.ac,v
retrieving revision 1.39
diff -a -u -r1.39 zshconfig.ac
--- zshconfig.ac 30 Aug 2003 19:16:22 -0000 1.39
+++ zshconfig.ac 7 Sep 2003 04:03:54 -0000
@@ -1081,7 +1081,8 @@
dnl slashes rather than doubled backslashes in the path.
echo "#include <signal.h>" > nametmp.c
sigfile_list="`$CPP nametmp.c |
-sed -n 's/^#[ ].*\"\(.*\)\"/\1/p' |
+sed -n -e 's/^#line[ ].*\"\(.*\)\"/\1/p' \
+ -e 's/^#[ ].*\"\(.*\)\"/\1/p' |
sed 's/\\\\\\\\/\//g' |
$AWK '{ if (\$1 ~ \"sig\") files[[\$1]] = \$1 }
END { for (var in files) print var }'`"
@@ -1128,7 +1129,8 @@
dnl slashes rather than doubled backslashes in the path.
echo "#include <errno.h>" > nametmp.c
errfile_list="`$CPP nametmp.c |
-sed -n 's/^#[ ].*\"\(.*\)\"/\1/p' |
+sed -n -e 's/^#line[ ].*\"\(.*\)\"/\1/p' \
+ -e 's/^#[ ].*\"\(.*\)\"/\1/p' |
sed 's/\\\\\\\\/\//g' |
$AWK '{ if (\$1 ~ \"err\") files[[\$1]] = \$1 }
END { for (var in files) print var }'`"
HTH,
Vin
prev parent reply other threads:[~2003-09-07 4:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-30 18:03 Peter Stephenson
2003-09-02 0:52 ` Vin Shelton
2003-09-02 8:04 ` Zefram
2003-09-02 9:56 ` Peter Stephenson
2003-09-02 15:18 ` Bart Schaefer
2003-09-07 4:03 ` Vin Shelton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ad9hnt3e.fsf@zion.rcn.com \
--to=acs@alumni.princeton.edu \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).