Merged revisions 134814 via svnmerge from
[asterisk-bristuff.git] / build_tools / prep_tarball
blob6afb99ee0a283fc6cd40ab3c75d076b2e430ec07
1 #!/bin/sh -e
3 # This script will be executed by the 'mkrelease' script to do any tasks
4 # necessary during tarball creation of this project.
6 # It will be executed from the top-level directory of the project.
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
11 VERSION=`cat .version`
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}/" doc/tex/asterisk.tex > doc/tex/asterisk_local.tex
15 mv asterisk_local.tex asterisk.tex
16 cd doc/tex && rubber --pdf asterisk.tex && latex2html asterisk.tex
17 # restore backup of asterisk.tex
18 mv asterisk.tex.orig asterisk.tex