mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user