home *** CD-ROM | disk | FTP | other *** search
- Path: 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>
-
- 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`"
-
-
-