bug-texinfo
[Top][All Lists]
Advanced

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

FYI: texi2dvi: Simplify run_makeinfo


From: Akim Demaille
Subject: FYI: texi2dvi: Simplify run_makeinfo
Date: Tue, 16 Jan 2007 10:57:39 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)

Hi friends,

Installing some patches I have been using for quite a while now.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * util/texi2dvi (run_makeinfo): Instead of putting the whole
        function in a "case", return if the language is not texinfo.

Index: util/texi2dvi
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.91
diff -u -u -u -w -r1.91 texi2dvi
--- util/texi2dvi 16 Jan 2007 09:51:56 -0000 1.91
+++ util/texi2dvi 16 Jan 2007 09:56:19 -0000
@@ -1002,8 +1002,9 @@
 # main info output, the user asked to run TeX, not makeinfo.
 run_makeinfo ()
 {
-  case $in_lang in
-  texinfo)
+  test $in_lang == texinfo ||
+    return 0
+
     # Unless required by the user, makeinfo expansion is wanted only
     # if texinfo.tex is too old.
     if test "$expand" = t; then
@@ -1066,8 +1067,6 @@
        in_input=$in_src
       fi
     fi
-    ;;
-  esac
 }
 
 # insert_commands ()




reply via email to

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