aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools/prep_tarball
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/prep_tarball')
-rwxr-xr-xbuild_tools/prep_tarball7
1 files changed, 6 insertions, 1 deletions
diff --git a/build_tools/prep_tarball b/build_tools/prep_tarball
index 5877a8a7b..6afb99ee0 100755
--- a/build_tools/prep_tarball
+++ b/build_tools/prep_tarball
@@ -9,5 +9,10 @@ make -C sounds MENUSELECT_CORE_SOUNDS=CORE-SOUNDS-EN-GSM MENUSELECT_MOH=MOH-FREE
make AWK=awk GREP=grep menuselect-tree
VERSION=`cat .version`
-sed -i -e "s/ASTERISKVERSION/${VERSION}/" doc/tex/asterisk.tex
+# 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