diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-11 23:57:01 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-11 23:57:01 +0000 |
commit | 397f60215926502ce687304b0df0894df77f2520 (patch) | |
tree | 6cadea0a5b31226257f27a6c568a61175fbb0e1c /doc | |
parent | e63414ec96d6fb4d5d6db2fdd7741b882288661c (diff) |
Add some extra checking to help out with a potential error when trying to
run "make asterisk.pdf" when not all of the right packages are installed.
(closes issue #10763)
Reported by: Corydon76
Patches:
20070919__bug10763.diff.txt uploaded by Corydon76 (license 14)
Tested by: Corydon76
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98454 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tex/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/tex/Makefile b/doc/tex/Makefile index e0b1ecd9a..70ad5f14a 100644 --- a/doc/tex/Makefile +++ b/doc/tex/Makefile @@ -14,6 +14,15 @@ else @echo "** generated. When complete, it will be ***" @echo "** located at asterisk.pdf. ***" @echo "**********************************************" +ifneq ($(findstring kpsewhich,$(KPATHSEA)),) +ifeq ($(findstring fncychap.sty,$(shell find `$(KPATHSEA) --expand-braces='$$(TEXMF)'| tr -d \! | sed 's/:/ /g'` -name fncychap.sty -print)),) + @echo + @echo "WARNING: The fncychap.sty document was not found" + @echo "On Ubuntu, install the texlive-latex-extra package." + @echo + @exit +endif +endif @cp asterisk.tex asterisk.tex.orig sed -i -e 's/ASTERISKVERSION/$(shell echo $(ASTERISKVERSION) | sed -e 's/\//\\\//g')/' asterisk.tex @$(RUBBER) --pdf asterisk.tex |