#!/bin/sh # Convert a TeXinfo or LaTeXinfo file to a GNU Emacs info file. # The file type is determined automatically. # [13-Jan-1999] -- update location of latexinfomd.el # [04-Oct-1991] for f in $* do if grep -s '^\\input texinfo' $f then echo "Processing TeXinfo file: $f" emacs -batch -funcall batch-texinfo-format $f elif grep -s '^\\documentstyle.*latexinfo' $f then echo "Processing LaTeXinfo file: $f" emacs -batch \ -load /usr/local/share/emacs/site-lisp/latexinfomd.el \ -load /usr/local/share/emacs/site-lisp/latexinfo.el \ -funcall batch-latexinfo-format \ $f | egrep -v '^Mark set|^Done' else echo "Don't know what kind of file this is: $f" fi done