mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@130578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -24,7 +24,8 @@ ifeq ($(findstring fncychap.sty,$(shell find `$(KPATHSEA) --expand-braces='$$(TE
|
||||
endif
|
||||
endif
|
||||
@cp asterisk.tex asterisk.tex.orig
|
||||
sed -i -e 's/ASTERISKVERSION/$(shell echo $(ASTERISKVERSION) | sed -e 's/\//\\\//g')/' asterisk.tex
|
||||
@sed -e 's/ASTERISKVERSION/$(shell echo $(ASTERISKVERSION) | sed -e 's/\//\\\//g')/' asterisk.tex > asterisk_local.tex
|
||||
@mv asterisk_local.tex asterisk.tex
|
||||
@$(RUBBER) --pdf asterisk.tex
|
||||
@mv asterisk.tex.orig asterisk.tex
|
||||
endif
|
||||
@@ -38,7 +39,8 @@ html:
|
||||
@echo "** required for this to work. ***"
|
||||
@echo "**********************************************"
|
||||
@cp asterisk.tex asterisk.tex.orig
|
||||
@sed -i -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' asterisk.tex
|
||||
@sed -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' asterisk.tex > asterisk_local.tex
|
||||
@mv asterisk_local.tex asterisk.tex
|
||||
@latex2html asterisk.tex
|
||||
@mv asterisk.tex.orig asterisk.tex
|
||||
|
||||
|
Reference in New Issue
Block a user