summaryrefslogtreecommitdiff
path: root/doc/tex
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-01-11 23:57:01 +0000
committerRussell Bryant <russell@russellbryant.com>2008-01-11 23:57:01 +0000
commit25275cc862bc7c8e452cdd544b9f87386fe1e5d7 (patch)
tree6cadea0a5b31226257f27a6c568a61175fbb0e1c /doc/tex
parent138799091c822fc140011ab3dd22a1a86b428373 (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: https://origsvn.digium.com/svn/asterisk/trunk@98454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'doc/tex')
-rw-r--r--doc/tex/Makefile9
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