<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[121939] trunk/dports/textproc/texinfo</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/121939">121939</a></dd>
<dt>Author</dt> <dd>mojca@macports.org</dd>
<dt>Date</dt> <dd>2014-07-11 13:57:55 -0700 (Fri, 11 Jul 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>texinfo: remove non-functional recoding as in upstream to avoid problems with sed (#43617)</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportstextproctexinfoPortfile">trunk/dports/textproc/texinfo/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/textproc/texinfo/files/</li>
<li><a href="#trunkdportstextproctexinfofilespatchutiltexi2dvidiff">trunk/dports/textproc/texinfo/files/patch-util-texi2dvi.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportstextproctexinfoPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/textproc/texinfo/Portfile (121938 => 121939)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/texinfo/Portfile        2014-07-11 20:50:08 UTC (rev 121938)
+++ trunk/dports/textproc/texinfo/Portfile        2014-07-11 20:57:55 UTC (rev 121939)
</span><span class="lines">@@ -5,6 +5,7 @@
</span><span class="cx"> 
</span><span class="cx"> name                texinfo
</span><span class="cx"> version             5.2
</span><ins>+revision            1
</ins><span class="cx"> categories          textproc
</span><span class="cx"> platforms           darwin
</span><span class="cx"> license             GPL-3+
</span><span class="lines">@@ -24,6 +25,7 @@
</span><span class="cx">                     if only the info command is used).
</span><span class="cx"> homepage            http://www.gnu.org/software/texinfo/
</span><span class="cx"> 
</span><ins>+depends_build       port:help2man
</ins><span class="cx"> depends_lib         port:gettext \
</span><span class="cx">                     port:libiconv \
</span><span class="cx">                     port:ncurses
</span><span class="lines">@@ -33,6 +35,10 @@
</span><span class="cx"> checksums           rmd160  564fb99e6876f982cc03c8570f88edc8100d3aab \
</span><span class="cx">                     sha256  5471ef683a64588a7cfef46ef2bdd3fbcbca89d847e10832612293f105e44eda
</span><span class="cx"> 
</span><ins>+# temporary patch until the next release
+# https://trac.macports.org/ticket/43617
+patchfiles          patch-util-texi2dvi.diff
+
</ins><span class="cx"> destroot.target-append  install-tex
</span><span class="cx"> destroot.args           TEXMF=${prefix}/share/texmf
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkdportstextproctexinfofilespatchutiltexi2dvidiff"></a>
<div class="addfile"><h4>Added: trunk/dports/textproc/texinfo/files/patch-util-texi2dvi.diff (0 => 121939)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/texinfo/files/patch-util-texi2dvi.diff                                (rev 0)
+++ trunk/dports/textproc/texinfo/files/patch-util-texi2dvi.diff        2014-07-11 20:57:55 UTC (rev 121939)
</span><span class="lines">@@ -0,0 +1,409 @@
</span><ins>+http://ftp.gnu.org/gnu/texinfo/texi2dvi
+http://svn.savannah.gnu.org/viewvc?view=rev&amp;root=texinfo&amp;revision=5704
+https://trac.macports.org/ticket/43617
+
+--- util/texi2dvi.orig
++++ util/texi2dvi
+@@ -1,9 +1,9 @@
+ #! /bin/sh
+ # texi2dvi --- produce DVI (or PDF) files from Texinfo (or (La)TeX) sources.
+-# $Id: texi2dvi 5381 2013-09-26 23:03:58Z karl $
++# $Id: texi2dvi 5704 2014-07-07 17:45:16Z karl $
+ #
+ # Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002,
+-# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
++# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
+ # Free Software Foundation, Inc.
+ #
+ # This program is free software; you can redistribute it and/or modify
+@@ -33,10 +33,13 @@ unset RUNNING_KSH
+ # No failure shall remain unpunished.
+ set -e

++# In case the default sed doesn't suffice.
++: ${SED=sed}
++
+ # This string is expanded automatically when this file is checked out.
+-rcs_revision='$Revision: 5381 $'
++rcs_revision='$Revision: 5704 $'
+ rcs_version=`set - $rcs_revision; echo $2`
+-program=`echo $0 | sed -e 's!.*/!!'`
++program=`echo $0 | $SED -e 's!.*/!!'`

+ build_mode=${TEXI2DVI_BUILD_MODE:-local}
+ build_dir=${TEXI2DVI_BUILD_DIRECTORY:-.}
+@@ -52,11 +55,10 @@ escape=&quot;\\&quot;
+ expand=false    # true for expansion via makeinfo
+ includes=
+ line_error=true # pass --file-line-error to TeX
+-max_iters=-1    # keep going forever
++max_iters=7     # when to quit
+ oname=          # --output
+ out_lang=dvi
+ quiet=false     # let the tools' message be displayed
+-recode=false
+ set_language=
+ src_specials=
+ shell_escape=
+@@ -65,7 +67,6 @@ textra=         # Extra TeX commands to insert in the input file.
+ txiprereq=19990129 # minimum texinfo.tex version with macro expansion
+ verb=false      # true for verbose mode
+ translate_file= # name of charset translation file
+-recode_from=    # if not empty, recode from this encoding to @documentencoding

+ orig_pwd=`pwd`

+@@ -162,7 +163,7 @@ cd_orig ()
+ func_dirname ()
+ {
+   dirname &quot;$1&quot; 2&gt;/dev/null \
+-  || { echo &quot;$1&quot; | sed 's!/[^/]*$!!;s!^$!.!'; }
++  || { echo &quot;$1&quot; | $SED 's!/[^/]*$!!;s!^$!.!'; }
+ }


+@@ -171,7 +172,7 @@ func_dirname ()
+ # Return FILE with one extension remove.  foo.bar.baz -&gt; foo.bar.
+ noext ()
+ {
+-  echo &quot;$1&quot; | sed -e 's/\.[^/.][^/.]*$//'
++  echo &quot;$1&quot; | $SED -e 's/\.[^/.][^/.]*$//'
+ }


+@@ -186,7 +187,7 @@ absolute ()
+       echo &quot;$1&quot;
+       ;;
+    *) local slashes
+-      slashes=`echo &quot;$1&quot; | sed -n 's,.*[^/]\(/*\)$,\1,p'`
++      slashes=`echo &quot;$1&quot; | $SED -n 's,.*[^/]\(/*\)$,\1,p'`
+       local rel
+       rel=$orig_pwd/`func_dirname &quot;$1&quot;`
+       if test -d &quot;$rel&quot;; then
+@@ -341,8 +342,6 @@ TeX tuning:
+   -I DIR                     search DIR for Texinfo files
+   -l, --language=LANG        specify LANG for FILE, either latex or texinfo
+       --no-line-error        do not pass --file-line-error to TeX
+-  -r, --recode               call recode before TeX to translate input
+-      --recode-from=ENC      recode from ENC to the @documentencoding
+       --shell-escape         pass --shell-escape to TeX
+       --src-specials         pass --src-specials to TeX
+   -t, --command=CMD          insert CMD in copy of input file
+@@ -358,7 +357,7 @@ Build modes:
+                          defaults to TEXI2DVI_BUILD_DIRECTORY [$build_dir]
+   --mostly-clean       remove the auxiliary files and directories
+                          but not the output
+-  --max-iterations=N   don't process files more than N times
++  --max-iterations=N   don't process files more than N times [$max_iters]

+ The MODE specifies where the TeX compilation takes place, and, as a
+ consequence, how auxiliary files are treated.  The build mode
+@@ -392,7 +391,7 @@ using \\graphicspath): in that case, use -I to specify the additional
+ directories to consider.

+ The values of the BIBER, BIBTEX, DVIPDF, DVIPS, HEVEA, LATEX, MAKEINDEX,
+-MAKEINFO, PDFLATEX, PDFTEX, T4HT, TEX, TEX4HT, TEXINDEX, and THUMBPDF
++MAKEINFO, PDFLATEX, PDFTEX, SED, T4HT, TEX, TEX4HT, TEXINDEX, and THUMBPDF_CMD
+ environment variables are used to run those commands, if they are set.

+ Regarding --dvipdf, if DVIPDF is not set in the environment, the
+@@ -430,7 +429,7 @@ version ()
+   cat &lt;&lt;EOF
+ texi2dvi (GNU Texinfo 5.2) $rcs_version

+-Copyright (C) 2013 Free Software Foundation, Inc.
++Copyright (C) 2014 Free Software Foundation, Inc.
+ License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
+ This is free software: you are free to change and redistribute it.
+ There is NO WARRANTY, to the extent permitted by law.
+@@ -472,7 +471,7 @@ list_concat_dirs ()
+                        -e 's/$path_sep$path_sep/${path_sep}EMPTY:/g'&quot;
+   save_IFS=$IFS
+   IFS=$path_sep
+-  set x `echo &quot;$2&quot; | eval sed $replace_EMPTY`; shift
++  set x `echo &quot;$2&quot; | eval $SED $replace_EMPTY`; shift
+   IFS=$save_IFS
+   local dir
+   for dir
+@@ -614,7 +613,7 @@ absolute_filenames ()
+                        -e 's/$path_sep\$/${path_sep}EMPTY/g' \
+                        -e 's/$path_sep$path_sep/${path_sep}EMPTY:/g'&quot;
+   local res
+-  res=`echo &quot;$1&quot; | eval sed $replace_empty`
++  res=`echo &quot;$1&quot; | eval $SED $replace_empty`
+   save_IFS=$IFS
+   IFS=$path_sep
+   set x $res; shift
+@@ -653,7 +652,7 @@ output_base_name ()
+      *) local out_noext
+         out_noext=`noext &quot;$oname&quot;`
+         local file_ext
+-        file_ext=`echo &quot;$1&quot; | sed 's/^.*\.//'`
++        file_ext=`echo &quot;$1&quot; | $SED 's/^.*\.//'`
+         echo &quot;$out_noext.$file_ext&quot;
+       ;;
+   esac
+@@ -775,7 +774,7 @@ bibaux_file_p ()
+ index_file_p ()
+ {
+   test -f &quot;$1&quot; || return 1
+-  case $in_lang:$latex2html:`out_lang_tex`:`sed '1q' &quot;$1&quot;` in
++  case $in_lang:$latex2html:`out_lang_tex`:`$SED '1q' &quot;$1&quot;` in
+     # When working with TeX4HT, *.idx are created by LaTeX.  They must
+     # be processed to produce *.4ix, *.4dx files.  The *.4dx file is
+     # passed to makeindex to produce the *.ind file.  This sequence is
+@@ -803,7 +802,7 @@ xref_file_p ()
+   # process it.  It's suitable if the first character is a
+   # backslash or right quote or at, as long as the first line isn't
+   # \input texinfo.
+-  case `sed '1q' &quot;$1&quot;` in
++  case `$SED '1q' &quot;$1&quot;` in
+     &quot;\\input texinfo&quot;*) return 1;;
+     [\\''@]*)           return 0;;
+            *)           return 1;;
+@@ -824,7 +823,7 @@ generated_files_get ()
+   # Gather the files created by TeX.
+   (
+     if test -f &quot;$1.log&quot;; then
+-      sed -n -e &quot;s,^\\\\openout.* = \`\\(.*\\)'\\.,\\1,p&quot; &quot;$1.log&quot;
++      $SED -n -e &quot;s,^\\\\openout.* = \`\\(.*\\)'\\.,\\1,p&quot; &quot;$1.log&quot;
+     fi
+     echo &quot;$1.log&quot;
+   ) |
+@@ -841,10 +840,10 @@ generated_files_get ()
+       latex)
+         if aux_file_p $file; then
+           # bibtex: *.aux -&gt; *.bbl and *.blg.
+-          echo $file | sed 's/^\(.*\)\.aux$/\1.bbl/'
+-          echo $file | sed 's/^\(.*\)\.aux$/\1.blg/'
++          echo $file | $SED 's/^\(.*\)\.aux$/\1.bbl/'
++          echo $file | $SED 's/^\(.*\)\.aux$/\1.blg/'
+           # -recorder: .fls
+-          echo $file | sed 's/^\(.*\)\.aux$/\1.fls/'
++          echo $file | $SED 's/^\(.*\)\.aux$/\1.fls/'
+        fi
+        ;;
+     esac
+@@ -915,10 +914,10 @@ xref_files_changed ()

+   # Compare each file until we find a difference.
+   for this_file in $xref_files_new; do
+-    verbose &quot;Comparing xref file `echo $this_file | sed 's|\./||g'` ...&quot;
++    verbose &quot;Comparing xref file `echo $this_file | $SED 's|\./||g'` ...&quot;
+     # cmp -s returns nonzero exit status if files differ.
+     if cmp -s &quot;$this_file&quot; &quot;$work_bak/$this_file&quot;; then :; else
+-      verbose &quot;xref file `echo $this_file | sed 's|\./||g'` differed ...&quot;
++      verbose &quot;xref file `echo $this_file | $SED 's|\./||g'` differed ...&quot;
+       if $debug; then
+         diff -u &quot;$work_bak/$this_file&quot; &quot;$this_file&quot;
+       fi
+@@ -972,7 +971,7 @@ run_tex ()
+   # subdirectory to exist.
+   case $in_lang:$tidy in
+     latex:true)
+-       sed -n 's|^[ ]*\\include{\(.*\)/.*}.*|\1|p' &quot;$in_input&quot; |
++       $SED -n 's|^[ ]*\\include{\(.*\)/.*}.*|\1|p' &quot;$in_input&quot; |
+        sort -u |
+        while read d
+        do
+@@ -1103,14 +1102,15 @@ run_bibtex ()
+   # bibtex would never be run.
+   if test -r &quot;$in_noext.aux&quot; \
+      &amp;&amp; test -r &quot;$in_noext.log&quot; \
+-     &amp;&amp; ((grep 'Warning:.*Citation.*undefined' &quot;$in_noext.log&quot; \
++     &amp;&amp; ( (grep 'Warning:.*Citation.*undefined' &quot;$in_noext.log&quot; \
+           || grep '.*Undefined citation' &quot;$in_noext.log&quot; \
+           || grep 'No file .*\.bbl\.' &quot;$in_noext.log&quot;) \
+           || (grep 'No \.aux file' &quot;$in_noext.log&quot; \
+-              &amp;&amp; grep '^\\bibdata' &quot;$in_noext.aux&quot;)) \
++              &amp;&amp; grep '^\\bibdata' &quot;$in_noext.aux&quot;) ) \
+         &gt;&amp;6 2&gt;&amp;1; \
+   then
+-    for f in `generated_files_get &quot;$in_noext&quot; bibaux_file_p`; do
++    bibtex_aux=`generated_files_get &quot;$in_noext&quot; bibaux_file_p`
++    for f in $bibtex_aux; do
+       run $bibtex &quot;$f&quot;
+     done
+   fi
+@@ -1199,7 +1199,7 @@ run_thumbpdf ()
+      &amp;&amp; test -r &quot;$in_noext.log&quot; \
+      &amp;&amp; grep 'thumbpdf\.sty'  &quot;$in_noext.log&quot; &gt;&amp;6 2&gt;&amp;1; \
+   then
+-    thumbpdf=${THUMBPDF:-thumbpdf}
++    thumbpdf=${THUMBPDF_CMD:-thumbpdf}
+     thumbcmd=&quot;$thumbpdf $in_dir/$in_noext&quot;
+     verbose &quot;Running $thumbcmd ...&quot;
+     if $thumbcmd &gt;&amp;5; then
+@@ -1229,7 +1229,7 @@ run_dvipdf ()
+   # 'input -o output'.  They all seem to accept 'input' only,
+   # outputting using the expected file name.
+   run $dvipdf &quot;$1&quot;
+-  if test ! -f `echo &quot;$1&quot; | sed -e 's/\.dvi$/.pdf/'`; then
++  if test ! -f `echo &quot;$1&quot; | $SED -e 's/\.dvi$/.pdf/'`; then
+     error 1 &quot;cannot find output file&quot;
+   fi
+ }
+@@ -1261,9 +1261,9 @@ run_tex_suite ()

+     xref_files_save

+-    # We run bibtex first, because I can see reasons for the indexes
+-    # to change after bibtex is run, but I see no reason for the
+-    # converse.
++    # We run bibtex first, because it's more likely for the indexes
++    # to change after bibtex is run than the reverse, though either
++    # would be rare.
+     run_bibtex
+     run_index
+     run_core_conversion
+@@ -1376,7 +1376,7 @@ to tex itself simply not working.&quot;
+       cat &quot;$version_test_dir/txiversion.err&quot; &gt;&amp;2
+       error 1 &quot;quitting.&quot;
+     fi
+-    eval `sed -n 's/^.*\[\(.*\)version \(....\)-\(..\)-\(..\).*$/txiformat=\1 txiversion=&quot;\2\3\4&quot;/p' &quot;$version_test_dir/txiversion.out&quot;`
++    eval `$SED -n 's/^.*\[\(.*\)version \(....\)-\(..\)-\(..\).*$/txiformat=\1 txiversion=&quot;\2\3\4&quot;/p' &quot;$version_test_dir/txiversion.out&quot;`
+     verbose &quot;texinfo.tex preloaded as \`$txiformat', version is \`$txiversion' ...&quot;
+     if test &quot;$txiprereq&quot; -le &quot;$txiversion&quot; &gt;&amp;6 2&gt;&amp;1; then
+       makeinfo=
+@@ -1402,10 +1402,10 @@ to tex itself simply not working.&quot;
+     # (running missing) and then we end up with things like '&quot;-I&quot;',
+     # and &quot;-I&quot; (including the quotes) is not an option name.  This
+     # happens with gettext 0.14.5, at least.
+-    sed &quot;$comment_iftex&quot; &quot;$command_line_filename&quot; \
++    $SED &quot;$comment_iftex&quot; &quot;$command_line_filename&quot; \
+       | eval $makeinfo --footnote-style=end -I &quot;$in_dir&quot; $miincludes \
+         -o /dev/null --macro-expand=- \
+-      | sed &quot;$uncomment_iftex&quot; &gt;&quot;$in_src&quot;
++      | $SED &quot;$uncomment_iftex&quot; &gt;&quot;$in_src&quot;
+     # Continue only if everything succeeded.
+     if test $? -ne 0 \
+        || test ! -r &quot;$in_src&quot;; then
+@@ -1433,7 +1433,7 @@ insert_commands ()
+       texinfo) textra_cmd='/^@setfilename/a';;
+       *)       error 1 &quot;internal error, unknown language: $in_lang&quot;;;
+     esac
+-    sed &quot;$textra_cmd\\
++    $SED &quot;$textra_cmd\\
+ $textra&quot; &quot;$in_input&quot; &gt;&quot;$in_xtr&quot;
+     in_input=$in_xtr
+   fi
+@@ -1453,45 +1453,6 @@ $textra&quot; &quot;$in_input&quot; &gt;&quot;$in_xtr&quot;
+   esac
+ }

+-# run_recode ()
+-# -------------
+-# If this is a Texinfo file with a specified input encoding, and
+-# recode is available, then recode to plain 7 bit Texinfo.
+-run_recode ()
+-{
+-  local from
+-  local to
+-
+-  if test $in_lang = texinfo; then
+-    pgm='s/^ *@documentencoding  *\([^ ][^ ]*\) *$/\1/
+-        t found
+-        d
+-        :found
+-        q'
+-    encoding=`sed -e &quot;$pgm&quot; &quot;$in_input&quot;`
+-    if $recode &amp;&amp; test -n &quot;$encoding&quot; &amp;&amp; findprog recode; then
+-      if test -n &quot;$recode_from&quot;; then
+-        from=$recode_from
+-        to=$encoding
+-      else
+-        from=$encoding
+-        to=$texinfo
+-      fi
+-      verbose &quot;Recoding from $from to $to.&quot;
+-      # _rcd.  The Texinfo file recoded in 7bit.
+-      work_rcd=$workdir/recode
+-      in_rcd=$work_rcd/$in_base
+-      ensure_dir &quot;$work_rcd&quot;
+-      if recode &quot;$encoding..$to&quot; &lt;&quot;$in_input&quot; &gt;&quot;$in_rcd&quot; \
+-         &amp;&amp; test -s &quot;$in_rcd&quot;; then
+-        in_input=$in_rcd
+-      else
+-        verbose &quot;Recoding failed, using original input.&quot;
+-      fi
+-    fi
+-  fi
+-}
+-
+ # compute_language FILENAME
+ # -------------------------
+ # Return the short string describing the language in which FILENAME
+@@ -1503,7 +1464,7 @@ compute_language ()
+   # Otherwise, guess from the file extension.
+   if test -n &quot;$set_language&quot;; then
+     echo $set_language
+-  elif sed 1q &quot;$1&quot; | grep 'input texinfo' &gt;&amp;6; then
++  elif $SED 1q &quot;$1&quot; | grep 'input texinfo' &gt;&amp;6; then
+     echo texinfo
+   else
+     # Get the type of the file (latex or texinfo) from the given language
+@@ -1618,9 +1579,6 @@ compile ()
+   # --command, --texinfo
+   insert_commands

+-  # --recode
+-  run_recode
+-
+   # Run until a fix point is reached.
+   run_tex_suite
+ }
+@@ -1689,14 +1647,13 @@ while test x&quot;$1&quot; != x&quot;$arg_sep&quot;; do
+   # Handle --option=value by splitting apart and putting back on argv.
+   case &quot;$1&quot; in
+     --*=*)
+-      opt=`echo &quot;$1&quot; | sed -e 's/=.*//'`
+-      val=`echo &quot;$1&quot; | sed -e 's/[^=]*=//'`
++      opt=`echo &quot;$1&quot; | $SED -e 's/=.*//'`
++      val=`echo &quot;$1&quot; | $SED -e 's/[^=]*=//'`
+       shift
+       set dummy &quot;$opt&quot; &quot;$val&quot; ${1+&quot;$@&quot;}; shift
+       ;;
+   esac

+-  # This recognizes --quark as --quiet.  Oh well.
+   case &quot;$1&quot; in
+     -@ ) escape=@;;
+     -~ ) catcode_special=false;;
+@@ -1721,17 +1678,15 @@ while test x&quot;$1&quot; != x&quot;$arg_sep&quot;; do
+     # Output formats.
+     -O|--output-format) shift; out_lang_set &quot;$1&quot;;;
+        --dvi|--dvipdf|--html|--info|--pdf|--ps|--text)
+-       out_lang_set `echo &quot;x$1&quot; | sed 's/^x--//'`;;
++       out_lang_set `echo &quot;x$1&quot; | $SED 's/^x--//'`;;

+     -p) out_lang_set pdf;;
+     -q | -s | --quiet | --silent) quiet=true; batch=true;;
+-    -r | --recode) recode=true;;
+-    --recode-from) shift; recode=true; recode_from=&quot;$1&quot;;;
+     --src-specials) src_specials=--src-specials;;
+     --shell-escape) shell_escape=--shell-escape;;  
+     --tex4ht) latex2html=tex4ht;;
+     -t | --texinfo | --command ) shift; textra=&quot;$textra\\
+-&quot;`echo &quot;$1&quot; | sed 's/\\\\/\\\\\\\\/g'`;;
++&quot;`echo &quot;$1&quot; | $SED 's/\\\\/\\\\\\\\/g'`;;
+     --translate-file ) shift; translate_file=&quot;$1&quot;;;
+     --tidy) build_mode=tidy;;
+     -v | --vers*) version;;
+@@ -1858,7 +1813,7 @@ fi
+ #   The input file name without extensions (nor directory part).
+ # - IN_INPUT
+ #   Defaults to COMMAND_LINE_FILENAME, but might change if the
+-#   input is preprocessed (recode etc.).  With directory, possibly absolute.
++#   input is preprocessed.  With directory, possibly absolute.
+ input_file_name_decode ()
+ {
+   # See if we are run from within AUC-Tex, in which case we are
+@@ -1943,7 +1898,7 @@ do
+          # has active characters.  Transform / into ! so that we don't
+          # need `mkdir -p'.  It might be something to reconsider.
+          t2ddir=$build_dir/`echo &quot;$out_dir_abs/$out_noext.t2d&quot; |
+-             sed &quot;s,^$orig_pwd/,,;s,^\./,,;s,/,!,g&quot;`
++             $SED &quot;s,^$orig_pwd/,,;s,^\./,,;s,/,!,g&quot;`
+   esac
+   # Remove it at exit if clean mode.
+   trap &quot;cleanup&quot; 0 1 2 15
</ins></span></pre>
</div>
</div>

</body>
</html>