49c36f447385e1d85b198522ef1ee2f15cbe2b64
[asterisk/asterisk.git] / build_tools / prep_tarball
1 #!/bin/sh -e
2
3 # This script will be executed by the 'mkrelease' script to do any tasks
4 # necessary during tarball creation of this project.
5 #
6 # It will be executed from the top-level directory of the project.
7
8 make -C sounds MENUSELECT_CORE_SOUNDS=CORE-SOUNDS-EN-GSM MENUSELECT_MOH=MOH-FREEPLAY-WAV WGET=wget DOWNLOAD=wget all
9 make AWK=awk GREP=grep menuselect-tree
10
11 make_tex_docs() {
12     # make backup of asterisk.tex because we are going to alter it
13     cp asterisk.tex asterisk.tex.orig
14     sed -e "s/ASTERISKVERSION/${VERSION}/" asterisk.tex > asterisk_local.tex
15     mv asterisk_local.tex asterisk.tex
16     rubber --pdf asterisk.tex
17     latex2html asterisk.tex
18     # restore backup of asterisk.tex
19     mv asterisk.tex.orig asterisk.tex
20 }
21
22 VERSION=`cat .version`
23 cd doc/tex && make_tex_docs