[asterisk-commits] kpfleming: trunk r137640 - /trunk/build_tools/prep_tarball

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 13 18:00:37 CDT 2008


Author: kpfleming
Date: Wed Aug 13 18:00:37 2008
New Revision: 137640

URL: http://svn.digium.com/view/asterisk?view=rev&rev=137640
Log:
make this script actually work

Modified:
    trunk/build_tools/prep_tarball

Modified: trunk/build_tools/prep_tarball
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/prep_tarball?view=diff&rev=137640&r1=137639&r2=137640
==============================================================================
--- trunk/build_tools/prep_tarball (original)
+++ trunk/build_tools/prep_tarball Wed Aug 13 18:00:37 2008
@@ -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




More information about the asterisk-commits mailing list