aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools/prep_tarball
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-13 23:00:55 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-13 23:00:55 +0000
commitf3ff30d83af7552f03bdbd8f488fb7b82ec74f68 (patch)
treea27762cf18ebbd54845d17daa686ae6439726f4d /build_tools/prep_tarball
parent1e8b08cb2538177a939b40dfb2bf90cf5a1c702b (diff)
Merged revisions 137640 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r137640 | kpfleming | 2008-08-13 18:00:37 -0500 (Wed, 13 Aug 2008) | 1 line make this script actually work ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@137641 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools/prep_tarball')
-rwxr-xr-xbuild_tools/prep_tarball19
1 files changed, 12 insertions, 7 deletions
diff --git a/build_tools/prep_tarball b/build_tools/prep_tarball
index 6afb99ee0..49c36f447 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