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
This commit is contained in:
Russell Bryant
2008-01-11 23:57:01 +00:00
parent 138799091c
commit 25275cc862
4 changed files with 59 additions and 5 deletions

View File

@@ -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