asterisk/build_tools/prep_tarball
Michiel van Baak 0d49cdae3e Make all sed calls Posix sed compatible.
To make sure nobody commits script-modified files we first make a backup
of asterisk.tex, run the script, generate the pdf and / or html,
and put the original asterisk.tex back.
This will guard us for the stuff that happened before that someone committed 
a locally modified asterisk.tex, with changes done by this script.

(closes issue #13062)
Reported by: mvanbaak
Patches:
      sed_without-i-v3.diff uploaded by mvanbaak (license 7)
Tested by: mvanbaak

Feedback from Corydon. Thanks for taking the time to go through this.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@130578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-13 23:14:03 +00:00

19 lines
745 B
Bash
Executable file

#!/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-FREEPLAY-WAV WGET=wget DOWNLOAD=wget all
make AWK=awk GREP=grep menuselect-tree
VERSION=`cat .version`
# make backup of asterisk.tex because we are going to alter it
cp asterisk.tex asterisk.tex.orig
sed -e "s/ASTERISKVERSION/${VERSION}/" doc/tex/asterisk.tex > doc/tex/asterisk_local.tex
mv asterisk_local.tex asterisk.tex
cd doc/tex && rubber --pdf asterisk.tex && latex2html asterisk.tex
# restore backup of asterisk.tex
mv asterisk.tex.orig asterisk.tex