Fix replacing the version number when it has a '/' in it, like
authorRussell Bryant <russell@russellbryant.com>
Fri, 2 Nov 2007 20:13:18 +0000 (20:13 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 2 Nov 2007 20:13:18 +0000 (20:13 +0000)
  SVN-group-chan_unistim-r88326M-/trunk

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88327 65c4cc65-6c06-0410-ace0-fbb531ad65f3

doc/tex/Makefile

index 2ccf892..e0b1ecd 100644 (file)
@@ -15,7 +15,7 @@ else
        @echo "** located at asterisk.pdf.                ***"  
        @echo "**********************************************"
        @cp asterisk.tex asterisk.tex.orig
        @echo "** located at asterisk.pdf.                ***"  
        @echo "**********************************************"
        @cp asterisk.tex asterisk.tex.orig
-       @sed -i -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' asterisk.tex
+       sed -i -e 's/ASTERISKVERSION/$(shell echo $(ASTERISKVERSION) | sed -e 's/\//\\\//g')/' asterisk.tex
        @$(RUBBER) --pdf asterisk.tex
        @mv asterisk.tex.orig asterisk.tex
 endif
        @$(RUBBER) --pdf asterisk.tex
        @mv asterisk.tex.orig asterisk.tex
 endif