mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Merged revisions 339586 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/10 ................ r339586 | lmadsen | 2011-10-06 08:43:21 -0500 (Thu, 06 Oct 2011) | 16 lines Merged revisions 339566 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r339566 | lmadsen | 2011-10-05 16:30:11 -0500 (Wed, 05 Oct 2011) | 8 lines Update prep_tarball script to download pre-exported documentation. I've updated the prep_tarball script to now download the pre-exported documentation from the Asterisk wiki. This will give us more control over what is being included in the tarball releases, and will make both the PDF and HTML exported documentation look much better (especially when viewing from a console). (Closes issue ASTERISK-18677) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@339587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7,27 +7,23 @@
|
|||||||
|
|
||||||
make -C sounds MENUSELECT_CORE_SOUNDS=CORE-SOUNDS-EN-GSM MENUSELECT_MOH=MOH-OPSOUND-WAV WGET=wget DOWNLOAD=wget all
|
make -C sounds MENUSELECT_CORE_SOUNDS=CORE-SOUNDS-EN-GSM MENUSELECT_MOH=MOH-OPSOUND-WAV WGET=wget DOWNLOAD=wget all
|
||||||
|
|
||||||
if ! which wikiexport.py 2>&1 > /dev/null ; then
|
branch=$1
|
||||||
echo
|
|
||||||
echo "wikiexport.py not found in \${PATH}."
|
if [ -z "$branch" ]
|
||||||
echo
|
then
|
||||||
echo "Please add repotools into PATH."
|
echo "No branch specified. Exiting."
|
||||||
echo " $ svn co http://svn.asterisk.org/svn/repotools"
|
|
||||||
echo
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which pdftotext 2>&1 > /dev/null ; then
|
hash unzip 2>&- || { echo >&2 "The unzip application is required but was not found. Aborting."; exit 1; }
|
||||||
echo
|
|
||||||
echo "pdftotext not found. Please install it."
|
|
||||||
echo
|
|
||||||
echo "On Debian/Ubuntu/Fedora/CentOS, install the poppler-utils package."
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd doc
|
cd doc
|
||||||
echo "Exporting Asterisk wiki to a PDF (this will take a minute) ..."
|
echo "Downloading the PDF and HTML documentation from the Asterisk wiki (this will take a minute) ..."
|
||||||
wikiexport.py
|
wget https://wiki.asterisk.org/wiki/download/attachments/19005471/Asterisk-Admin-Guide-$branch.pdf
|
||||||
echo "Converting wiki export PDF to plain text ..."
|
wget https://wiki.asterisk.org/wiki/download/attachments/19005471/Asterisk-Admin-Guide-$branch.html.zip
|
||||||
pdftotext AST.pdf
|
echo "Extracting HTML Admin Guide"
|
||||||
|
unzip Asterisk-Admin-Guide-$branch.html.zip
|
||||||
|
mv AST/ Asterisk-Admin-Guide/
|
||||||
|
mv Asterisk-Admin-Guide-1.8.pdf Asterisk-Admin-Guide.pdf
|
||||||
|
rm -f Asterisk-Admin-Guide-$branch.html.zip
|
||||||
|
echo "Documentation downloaded. Goodbye!"
|
||||||
|
Reference in New Issue
Block a user