]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoconf.sh (task trace) [debug]: Instead of a long pipe, extend
authorAkim Demaille <akim@epita.fr>
Thu, 2 Nov 2000 15:06:02 +0000 (15:06 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 2 Nov 2000 15:06:02 +0000 (15:06 +0000)
trace.m4.

ChangeLog
autoconf.in
autoconf.sh
bin/autoconf.in

index 0c3ff01c733cecebf4c33bdaa9e3251a543a0d58..68ac27ffa4188897bc302986424c21b04be1217c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-11-02  Akim Demaille  <akim@epita.fr>
+
+       * autoconf.sh (task trace) [debug]: Instead of a long pipe, extend
+       trace.m4.
+
+       
 2000-11-02  Akim Demaille  <akim@epita.fr>
 
        * autoupdate.sh (m4.txt): Use `dumpdef' and m4 to build it.
index 393345774ebbd06ac83f6d6ba5eaec3b3213f204..7017bd7c3939d1528c9b35ea297ecd334ed4ba80 100644 (file)
@@ -635,14 +635,19 @@ EOF
   $run_m4_trace $infile 2>&1 >/dev/null |
     sed -f $tmp/trace2m4.sed |
     # Now we are ready to run m4 to process the trace file.
-    $M4 $tmp/trace.m4 - |
-    # It makes no sense to try to transform __oline__.
-    sed '
-      s/@<:@/[/g
-      s/@:>@/]/g
-      s/@S|@/$/g
-      s/@%:@/#/g
-      ' >&4
+    if $debug; then
+      cat >>$tmp/trace.m4
+      $M4 $tmp/trace.m4
+    else
+      $M4 $tmp/trace.m4 -
+    fi |
+      # It makes no sense to try to transform __oline__.
+      sed '
+       s/@<:@/[/g
+       s/@:>@/]/g
+       s/@S|@/$/g
+       s/@%:@/#/g
+       ' >&4
   ;;
 
 
index 393345774ebbd06ac83f6d6ba5eaec3b3213f204..7017bd7c3939d1528c9b35ea297ecd334ed4ba80 100644 (file)
@@ -635,14 +635,19 @@ EOF
   $run_m4_trace $infile 2>&1 >/dev/null |
     sed -f $tmp/trace2m4.sed |
     # Now we are ready to run m4 to process the trace file.
-    $M4 $tmp/trace.m4 - |
-    # It makes no sense to try to transform __oline__.
-    sed '
-      s/@<:@/[/g
-      s/@:>@/]/g
-      s/@S|@/$/g
-      s/@%:@/#/g
-      ' >&4
+    if $debug; then
+      cat >>$tmp/trace.m4
+      $M4 $tmp/trace.m4
+    else
+      $M4 $tmp/trace.m4 -
+    fi |
+      # It makes no sense to try to transform __oline__.
+      sed '
+       s/@<:@/[/g
+       s/@:>@/]/g
+       s/@S|@/$/g
+       s/@%:@/#/g
+       ' >&4
   ;;
 
 
index 393345774ebbd06ac83f6d6ba5eaec3b3213f204..7017bd7c3939d1528c9b35ea297ecd334ed4ba80 100644 (file)
@@ -635,14 +635,19 @@ EOF
   $run_m4_trace $infile 2>&1 >/dev/null |
     sed -f $tmp/trace2m4.sed |
     # Now we are ready to run m4 to process the trace file.
-    $M4 $tmp/trace.m4 - |
-    # It makes no sense to try to transform __oline__.
-    sed '
-      s/@<:@/[/g
-      s/@:>@/]/g
-      s/@S|@/$/g
-      s/@%:@/#/g
-      ' >&4
+    if $debug; then
+      cat >>$tmp/trace.m4
+      $M4 $tmp/trace.m4
+    else
+      $M4 $tmp/trace.m4 -
+    fi |
+      # It makes no sense to try to transform __oline__.
+      sed '
+       s/@<:@/[/g
+       s/@:>@/]/g
+       s/@S|@/$/g
+       s/@%:@/#/g
+       ' >&4
   ;;