Don't blow up if a branch name has an underscore in it
authorRussell Bryant <russell@russellbryant.com>
Fri, 23 Jan 2009 22:58:37 +0000 (22:58 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 23 Jan 2009 22:58:37 +0000 (22:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@170790 65c4cc65-6c06-0410-ace0-fbb531ad65f3

doc/tex/Makefile

index bdb29dd..40f76fc 100644 (file)
@@ -24,7 +24,7 @@ ifeq ($(findstring fncychap.sty,$(shell find `$(KPATHSEA) --expand-braces='$${TE
 endif
 endif
        @cp asterisk.tex asterisk.tex.orig
-       @sed -e 's/ASTERISKVERSION/$(shell echo $(ASTERISKVERSION) | sed -e 's/\//\\\//g')/' asterisk.tex > asterisk_local.tex
+       @sed -e 's/ASTERISKVERSION/$(shell echo $(ASTERISKVERSION) | sed -e 's/\//\\\//g' | 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