diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2014-04-27 10:04:05 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2014-04-27 10:04:05 +0200 |
commit | 0e496b4f9ba9b8376283bfe202d28bb538c438cc (patch) | |
tree | 83bbea28293a93eaeed8ce7547436a29846c23a3 /tools | |
parent | d8bbe78756d02f7964095dcc5bebbf158f9c4acf (diff) | |
download | fork-ledger-0e496b4f9ba9b8376283bfe202d28bb538c438cc.tar.gz fork-ledger-0e496b4f9ba9b8376283bfe202d28bb538c438cc.tar.bz2 fork-ledger-0e496b4f9ba9b8376283bfe202d28bb538c438cc.zip |
gendocs: use hombrew texinfo on mac if installed
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]
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/gendocs.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gendocs.sh b/tools/gendocs.sh index 48b6a943..483f0230 100755 --- a/tools/gendocs.sh +++ b/tools/gendocs.sh @@ -13,6 +13,14 @@ case $1 in 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..." |