mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-21 01:01:48 +08:00
* 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:
parent
6a80cc62e0
commit
424aa5a02f
@ -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.
|
||||
|
20
autoconf.in
20
autoconf.in
@ -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
|
||||
;;
|
||||
|
||||
|
||||
|
20
autoconf.sh
20
autoconf.sh
@ -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
|
||||
;;
|
||||
|
||||
|
||||
|
@ -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
|
||||
;;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user