Article View: gnu.utils.bug
Article #1330autoheader (autoconf 1.3)
From: Jun Hamano
Date: Tue, 26 Jan 1993 02:13
Date: Tue, 26 Jan 1993 02:13
47 lines
2040 bytes
2040 bytes
Earlier, I reported that autheader fails to parse m4 output
because of incompatibility between traditional `sed' and GNU sed.
Namely, for '/pattern1/,/pattern2/' construct, traditional sed
sometimes doesn't consider it is the end of range if both
patterns appear on the same line. This patch works around this
problem and should work with both traditional and GNU sed.
There is another sed related problem in autoheader.sh.
Traditional sed doesn't like the following construct (attempt to
replace something with a newline):
sed 's/foo/
/g'
-- >8 ---- >8 ---- >8 ---- >8 ---- >8 ---- >8 ---- >8 ----
$ rcsdiff -c3 -r1.1 autoheader.sh
===================================================================
RCS file: autoheader.sh,v
retrieving revision 1.1
diff -c3 -r1.1 autoheader.sh
*** autoheader.sh 1993/01/25 19:06:06 1.1
--- autoheader.sh 1993/01/25 19:06:57
***************
*** 63,69 ****
# autoconf processing of the input file.
eval "`echo \"$frob\" \
| m4 $MACROFILES - $infile \
! | sed -n '/^@@@/,/@@@$/s/^@*\([^@]*\)@*$/\1/p'`"
# Make SYMS newline-separated rather than blank-separated.
syms="`for sym in $syms; do echo $sym; done`"
--- 63,77 ----
# autoconf processing of the input file.
eval "`echo \"$frob\" \
| m4 $MACROFILES - $infile \
! | sed -n -e '
! : again
! /^@@@.*@@@$/s/@@@\(.*\)@@@$/\1/p
! /^@@@/{
! s/^@@@//p
! n
! s/^/@@@/
! b again
! }'`"
# Make SYMS newline-separated rather than blank-separated.
syms="`for sym in $syms; do echo $sym; done`"
Technical Details
Message-ID:
<9301251921.AA01130@tori.twinsun.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!tori.TWinsun.COM!junioShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!tori.TWinsun.COM!junio From: junio@tori.TWinsun.COM (Jun Hamano) Newsgroups: gnu.utils.bug Subject: autoheader (autoconf 1.3) Date: 25 Jan 1993 21:13:24 -0500 Organization: GNUs Not Usenet Lines: 49 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-utils@prep.ai.mit.edu Distribution: gnu Message-ID: <9301251921.AA01130@tori.twinsun.com>