Files
asterisk/build_tools/prep_tarball
T

30 lines
1.1 KiB
Bash
Raw Normal View History

2006-10-17 22:32:19 +00:00
#!/bin/sh -e
# This script will be executed by the 'mkrelease' script to do any tasks
# necessary during tarball creation of this project.
#
# It will be executed from the top-level directory of the project.
make -C sounds MENUSELECT_CORE_SOUNDS=CORE-SOUNDS-EN-GSM MENUSELECT_MOH=MOH-OPSOUND-WAV WGET=wget DOWNLOAD=wget all
2007-03-15 22:36:34 +00:00
2011-10-06 13:43:52 +00:00
branch=$1
2010-11-16 20:50:31 +00:00
2011-10-06 13:43:52 +00:00
if [ -z "$branch" ]
then
echo "No branch specified. Exiting."
2010-11-16 22:41:32 +00:00
exit 1
fi
2011-10-06 13:43:52 +00:00
hash unzip 2>&- || { echo >&2 "The unzip application is required but was not found. Aborting."; exit 1; }
2010-11-11 22:14:25 +00:00
cd doc
2011-10-06 13:43:52 +00:00
echo "Downloading the PDF and HTML documentation from the Asterisk wiki (this will take a minute) ..."
wget https://wiki.asterisk.org/wiki/download/attachments/19005471/Asterisk-Admin-Guide-$branch.pdf
wget https://wiki.asterisk.org/wiki/download/attachments/19005471/Asterisk-Admin-Guide-$branch.html.zip
echo "Extracting HTML Admin Guide"
unzip Asterisk-Admin-Guide-$branch.html.zip
mv AST/ Asterisk-Admin-Guide/
2011-11-08 13:23:27 +00:00
mv Asterisk-Admin-Guide-$branch.pdf Asterisk-Admin-Guide.pdf
2011-10-06 13:43:52 +00:00
rm -f Asterisk-Admin-Guide-$branch.html.zip
echo "Documentation downloaded. Goodbye!"