diff options
author | Leif Madsen <leif@leifmadsen.com> | 2010-04-21 19:18:35 +0000 |
---|---|---|
committer | Leif Madsen <leif@leifmadsen.com> | 2010-04-21 19:18:35 +0000 |
commit | 8b11ae2e4fe3b910c0c547120cdfaabb9b2263ac (patch) | |
tree | 0b5f3dba9e51591c99c75917e862ebf9a2cc744d /build_tools | |
parent | 693d1c44b1561f3703fed9714d39c4343464a43b (diff) |
Add ability to generate ASCII documentation from the TeX files.
These changes add the ability to run 'make asterisk.txt' just like the existing
'make asterisk.pdf' commands to generate a text document from the TeX files we
have in the doc/tex/ directory. I've also updated a few of the .tex files because
they weren't properly escaping certain characters so they would show up as Unicode
characters (like [U+021C]). Made changes to the configure scripts so it would
detect the catdvi program which is required to convert the .dvi file generated
by latex.
I've also added a few lines to the build_tools/prep_tarball script so that the
text documentation gets generated and added to future tarballs of Asterisk
releases.
(closes issue #17220)
Reported by: lmadsen
Patches:
asterisk.txt.patch uploaded by lmadsen (license 10)
asterisk.txt.patch-v4 uploaded by pabelanger (license 224)
Tested by: lmadsen, pabelanger
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@258351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/prep_tarball | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build_tools/prep_tarball b/build_tools/prep_tarball index dc762b172..6fe06c427 100755 --- a/build_tools/prep_tarball +++ b/build_tools/prep_tarball @@ -15,6 +15,8 @@ make_tex_docs() { mv asterisk_local.tex asterisk.tex rubber --pdf asterisk.tex latex2html asterisk.tex + latex asterisk.tex + catdvi -e 1 -U asterisk.dvi | sed -re "s/\[U\+2022\]/*/g" | sed -re "s/\[U\+02C6\]/^/g" | sed -re "s/([^^[:space:]])\s+/\1 /g" > asterisk.txt # restore backup of asterisk.tex mv asterisk.tex.orig asterisk.tex } |