From 3bc456b8a0769b1a5451730cc43c0c23f2019fd4 Mon Sep 17 00:00:00 2001 From: lmadsen Date: Wed, 21 Apr 2010 19:30:18 +0000 Subject: Merged revisions 258351 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r258351 | lmadsen | 2010-04-21 14:18:35 -0500 (Wed, 21 Apr 2010) | 20 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.2@258384 f38db490-d61c-443f-a65b-d21fe96a405b --- build_tools/prep_tarball | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build_tools') 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 } -- cgit v1.2.3