texinfo-commits
[Top][All Lists]
Advanced

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

[6605] texi2dvi make_openout_test


From: Gavin D. Smith
Subject: [6605] texi2dvi make_openout_test
Date: Tue, 08 Sep 2015 22:54:14 +0000

Revision: 6605
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6605
Author:   gavin
Date:     2015-09-08 22:54:13 +0000 (Tue, 08 Sep 2015)
Log Message:
-----------
texi2dvi make_openout_test

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2015-09-07 21:05:25 UTC (rev 6604)
+++ trunk/ChangeLog     2015-09-08 22:54:13 UTC (rev 6605)
@@ -1,3 +1,8 @@
+2015-09-08  Gavin Smith  <address@hidden>
+
+       * util/texi2dvi (make_openout_test): Put "./" in front of path 
+       of test file.  Supply /dev/null as input of TeX engine.
+
 2015-09-07  Gavin Smith  <address@hidden>
 
        * doc/texinfo.texi (Command Syntax): Make a section of an 

Modified: trunk/util/texi2dvi
===================================================================
--- trunk/util/texi2dvi 2015-09-07 21:05:25 UTC (rev 6604)
+++ trunk/util/texi2dvi 2015-09-08 22:54:13 UTC (rev 6605)
@@ -1446,12 +1446,15 @@
 \immediate\openout\ourwrite dum.dum
 \bye
 EOF
+    # \bye doesn't work for LaTeX, but it will cause latex
+    # to exit with an input error.
     recorder_option_maybe="$1"
     make_tex_cmd 
-    tex_cmd="$tex_cmd openout.tex"
+    tex_cmd="$tex_cmd ./openout.tex"
+    # ./ in case . isn't in path
     verbose "$0: running $tex_cmd ..."
     rm -fr "openout.$2"
-    eval "$tex_cmd" > /dev/null 2>&1
+    eval "$tex_cmd" </dev/null >/dev/null 2>&1
 }
 
 # Check tex supports -recorder option




reply via email to

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