blob: 2f8b5e7868ccabc1b5650e0c5ee1d68e30f55b05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
# Convert a TeXinfo or LaTeXinfo file to a GNU Emacs info file.
# The file type is determined automatically.
# [06-Mar-1996] -- update to remove absolute paths from -load options
# [04-Oct-1991] -- original version
for f in $*
do
if grep -s '^\\input texinfo' $f
then
echo "Processing TeXinfo file: $f"
emacs-19.29 -batch -funcall batch-texinfo-format $f
elif grep -s '^\\documentstyle.*latexinfo' $f
then
echo "Processing LaTeXinfo file: $f"
emacs-19.29 -batch \
-load latexinfomd.el \
-load 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
|