[asterisk-bugs] [Asterisk 0013062]: [patch] doc/tex/Makefile uses non-portable -i flag for sed

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jul 12 20:25:10 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13062 
====================================================================== 
Reported By:                mvanbaak
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13062
Category:                   Documentation
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-12-2008 09:06 CDT
Last Modified:              07-12-2008 20:25 CDT
====================================================================== 
Summary:                    [patch] doc/tex/Makefile uses non-portable -i flag
for sed
Description: 
While trying to generate the HTML docs from the tex source I ran into the
problem that the sed calls in doc/tex/Makefile use the -i flag.
This flag is not present on every system.

Besides that, the sed calls are useless because it tries to replace
ASTERISKVERSION and that string does not appear in any tex file.

This patch simply removes these calls and the surrounding cp/mv calls to
restore the original asterisk.tex

Now it works great on both my linux and OpenBSD boxen.
====================================================================== 

---------------------------------------------------------------------- 
 mvanbaak - 07-12-08 20:25  
---------------------------------------------------------------------- 
instead of removing the whole sed call, make the sed call posix
compatible.

sed -e 's/something/anotherthing/' asterisk.tex > asteriskzzz.tex
mv asteriskzzz.tex asterisk.tex

That's the way to go.

Thanks to seanbright for his input on IRC #asterisk-dev 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-12-08 20:25  mvanbaak       Note Added: 0090149                          
======================================================================




More information about the asterisk-bugs mailing list