From 62efd337c1107058f35fca78e7ffd30751d4739d Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" <kpfleming@digium.com> Date: Wed, 13 Aug 2008 23:00:37 +0000 Subject: [PATCH] make this script actually work git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137640 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- build_tools/prep_tarball | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/build_tools/prep_tarball b/build_tools/prep_tarball index 6afb99ee0a..49c36f4473 100755 --- a/build_tools/prep_tarball +++ b/build_tools/prep_tarball @@ -8,11 +8,16 @@ 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 +make_tex_docs() { + # make backup of asterisk.tex because we are going to alter it + cp asterisk.tex asterisk.tex.orig + sed -e "s/ASTERISKVERSION/${VERSION}/" asterisk.tex > asterisk_local.tex + mv asterisk_local.tex asterisk.tex + rubber --pdf asterisk.tex + latex2html asterisk.tex + # restore backup of asterisk.tex + mv asterisk.tex.orig asterisk.tex +} + 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 +cd doc/tex && make_tex_docs -- GitLab