aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-11-11 22:14:25 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-11-11 22:14:25 +0000
commit01242060d2112082fd346aa1f13247b9878d75b5 (patch)
tree8b9307baeee40cb5429b1fada5b3da28ec15b536 /build_tools
parentcaf86b83a5f7ceb638aae7f346468026ab001d93 (diff)
Merged revisions 294740 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r294740 | russell | 2010-11-11 16:13:38 -0600 (Thu, 11 Nov 2010) | 11 lines Remove most of the contents of the doc dir in favor of the wiki content. This merge does the following things: * Removes most of the contents from the doc/ directory in favor of the wiki - http://wiki.asterisk.org/ * Updates the build_tools/prep_tarball script to know how to export the contents of the wiki in both PDF and plain text formats so that the documentation is still included in Asterisk release tarballs. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@294741 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/prep_tarball20
1 files changed, 5 insertions, 15 deletions
diff --git a/build_tools/prep_tarball b/build_tools/prep_tarball
index 6fe06c427..e101c5d03 100755
--- a/build_tools/prep_tarball
+++ b/build_tools/prep_tarball
@@ -8,18 +8,8 @@
make -C sounds MENUSELECT_CORE_SOUNDS=CORE-SOUNDS-EN-GSM MENUSELECT_MOH=MOH-OPSOUND-WAV WGET=wget DOWNLOAD=wget all
make AWK=awk GREP=grep menuselect-tree
-make_tex_docs() {
- # make backup of asterisk.tex because we are going to alter it
- cp asterisk.tex asterisk.tex.orig
- sed -e "s/ASTERISKVERSION/${VERSION}/" asterisk.tex > asterisk_local.tex
- 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
-}
-
-VERSION=`cat .version`
-cd doc/tex && make_tex_docs
+cd doc
+echo "Exporting Asterisk wiki to a PDF (this will take a minute) ..."
+wikiexport.py
+echo "Converting wiki export PDF to plain text ..."
+pdftotext AST.pdf