The default texinfo (4.8) on Mac OS X shows odd warnings from a sed call
and generates verbatim html tags in links if the part of the link was
marked with @command{}.
With a current version of texinfo (5.2) these oddities are gone.
[ci skip]
29 lines
992 B
Bash
Executable file
29 lines
992 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# By default US Letter is used as the PDF papersize.
|
|
# For those preferring other dimensions add a4 or small
|
|
# as a commandline argument to this script to create a
|
|
# DIN A4 or smallbook version of the PDF.
|
|
case $1 in
|
|
a4*|afour*)
|
|
papersize='--texinfo=@afourpaper';;
|
|
small*)
|
|
papersize='--texinfo=@smallbook';;
|
|
*)
|
|
papersize='';; # US Letter is texinfo default
|
|
esac
|
|
|
|
# Use keg-only Mac Hombrew texinfo if installed.
|
|
# Since texi2pdf is a shell script itself executing texi2dvi
|
|
# PATH is prepended with the path to correct texinfo scripts.
|
|
if [ $(uname -s) = 'Darwin' ]; then
|
|
brew list texinfo >/dev/null 2>&1 \
|
|
&& export PATH="$(brew --prefix texinfo)/bin:$PATH"
|
|
fi
|
|
|
|
echo "===================================== Making Info..."
|
|
makeinfo ledger3.texi
|
|
echo "===================================== Making HTML..."
|
|
makeinfo --html --no-split ledger3.texi
|
|
echo "===================================== Making PDF..."
|
|
texi2pdf --quiet --batch ${papersize} ledger3.texi
|