Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Jun Hamano
Tue, 26 Jan 1993 02:13
autoheader (autoconf 1.3)
Author: 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`"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads