texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[6290] recognize luatex \openout .log lines without punctuation


From: karl
Subject: [6290] recognize luatex \openout .log lines without punctuation
Date: Sat, 30 May 2015 22:39:09 +0000

Revision: 6290
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6290
Author:   karl
Date:     2015-05-30 22:39:08 +0000 (Sat, 30 May 2015)
Log Message:
-----------
recognize luatex \openout .log lines without punctuation

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/util/texi2dvi

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2015-05-29 16:52:29 UTC (rev 6289)
+++ trunk/ChangeLog     2015-05-30 22:39:08 UTC (rev 6290)
@@ -1,3 +1,9 @@
+2015-05-30  Karl Berry  <address@hidden>
+
+       * util/texi2dvi (generated_files_get): another attempt at making
+       punctuation optional on the \openout line, for luatex.
+       Report from Wybo Dekker.
+
 2015-05-29  Gavin Smith  <address@hidden>
 
        * info/session.c (info_read_and_dispatch): Make call to 

Modified: trunk/util/texi2dvi
===================================================================
--- trunk/util/texi2dvi 2015-05-29 16:52:29 UTC (rev 6289)
+++ trunk/util/texi2dvi 2015-05-30 22:39:08 UTC (rev 6290)
@@ -753,10 +753,14 @@
   # Gather the files created by TeX.
   (
     if test -f "$1.log"; then
-      # historically the output is like: \openout1 = `foobar.tex'.
+      # Usually the output is like: \openout1 = `foobar.tex'.
+      # (including the final period)
       # but luatex outputs: \openout1 = foobar.tex
-      # so we have to make the punctuation optional.
-      $SED -n -e "s,^\\\\openout.* = \`*\\(.*\\)'*\\.*,\\1,p" "$1.log"
+      # (no quotes, no period).
+      # So we have to make the punctuation optional.
+      grep '^\\openout[0-9]' "$1.log" \
+        | $SED -e "s/\\\\openout[^=]*= *[\`']*//" \
+             -e "s/'\.$//"
     fi
     echo "$1.log"
   ) |




reply via email to

[Prev in Thread] Current Thread [Next in Thread]