diff options
author | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-13 23:14:03 +0000 |
---|---|---|
committer | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-13 23:14:03 +0000 |
commit | 24a772af0c8f6dad6f119d4bc30dff9b78a4886d (patch) | |
tree | 72e08dcc425721287b55c15ca4ea701c8ebc85db /build_tools | |
parent | 86155fde8c85c68b4029bd9ece2b650e4a356e1d (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@130578 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/prep_tarball | 7 |
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 |