* autoconf.sh (task trace): Pipe the output of the first m4 into

the second one, instead of saving to a tmp file, so that we can
trace endless configure.in expansion.
This commit is contained in:
Akim Demaille 2000-03-21 12:06:30 +00:00
parent 6a80cc62e0
commit 424aa5a02f
4 changed files with 33 additions and 33 deletions

View File

@ -1,3 +1,9 @@
2000-03-21 Akim Demaille <akim@epita.fr>
* autoconf.sh (task trace): Pipe the output of the first m4 into
the second one, instead of saving to a tmp file, so that we can
trace endless configure.in expansion.
2000-03-21 Akim Demaille <akim@epita.fr>
Uniform idioms.

View File

@ -440,21 +440,19 @@ EOF
fi
# Run m4 on the input file to get traces.
$verbose "Running $run_m4_trace $infile" >&2
$verbose "Running $run_m4_trace $infile | $M4 $trace_m4" >&2
$run_m4_trace $infile 2>&1 >/dev/null |
sed -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \([^(][^(]*\)(\(.*\)$/AT_\4([\1], [\2], [\3], [\4], \5/' \
-e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' >>$trace_m4
-e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' |
# Now we are ready to run m4 to process the trace file.
$M4 $trace_m4 - |
# It makes no sense to try to transform __oline__.
$verbose "Running $M4 $trace_m4" >&2
$M4 $trace_m4 |
sed '
s/@<:@/[/g
s/@:>@/]/g
s/@S|@/$/g
s/@%:@/#/g
' >&4
sed '
s/@<:@/[/g
s/@:>@/]/g
s/@S|@/$/g
s/@%:@/#/g
' >&4
;;

View File

@ -440,21 +440,19 @@ EOF
fi
# Run m4 on the input file to get traces.
$verbose "Running $run_m4_trace $infile" >&2
$verbose "Running $run_m4_trace $infile | $M4 $trace_m4" >&2
$run_m4_trace $infile 2>&1 >/dev/null |
sed -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \([^(][^(]*\)(\(.*\)$/AT_\4([\1], [\2], [\3], [\4], \5/' \
-e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' >>$trace_m4
-e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' |
# Now we are ready to run m4 to process the trace file.
$M4 $trace_m4 - |
# It makes no sense to try to transform __oline__.
$verbose "Running $M4 $trace_m4" >&2
$M4 $trace_m4 |
sed '
s/@<:@/[/g
s/@:>@/]/g
s/@S|@/$/g
s/@%:@/#/g
' >&4
sed '
s/@<:@/[/g
s/@:>@/]/g
s/@S|@/$/g
s/@%:@/#/g
' >&4
;;

View File

@ -440,21 +440,19 @@ EOF
fi
# Run m4 on the input file to get traces.
$verbose "Running $run_m4_trace $infile" >&2
$verbose "Running $run_m4_trace $infile | $M4 $trace_m4" >&2
$run_m4_trace $infile 2>&1 >/dev/null |
sed -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \([^(][^(]*\)(\(.*\)$/AT_\4([\1], [\2], [\3], [\4], \5/' \
-e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' >>$trace_m4
-e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' |
# Now we are ready to run m4 to process the trace file.
$M4 $trace_m4 - |
# It makes no sense to try to transform __oline__.
$verbose "Running $M4 $trace_m4" >&2
$M4 $trace_m4 |
sed '
s/@<:@/[/g
s/@:>@/]/g
s/@S|@/$/g
s/@%:@/#/g
' >&4
sed '
s/@<:@/[/g
s/@:>@/]/g
s/@S|@/$/g
s/@%:@/#/g
' >&4
;;