From ddf2e581b23efab340f6d9c908f9a07f1106f26b Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 29 May 2016 13:04:48 +0100 Subject: [PATCH] Check for qt patched version of wkhtmltopdf for pdf doc generation --- Doc/Manual/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/Manual/Makefile b/Doc/Manual/Makefile index c7769dc97..fb5f67c06 100644 --- a/Doc/Manual/Makefile +++ b/Doc/Manual/Makefile @@ -41,6 +41,7 @@ check: # 3)
   elements do not always select a fixed-width font - try installing the
 #     Courier font to fix - these have been added to style.css.
 generate: SWIGDocumentation.html
+	wkhtmltopdf --version | grep "with patched qt" || (echo "wkhtmltopdf is not the patched qt version and so cannot be used - download it from http://wkhtmltopdf.org/downloads.html" && false)
 	wkhtmltopdf --margin-top 20mm --margin-bottom 20mm --margin-left 10mm --margin-right 10mm --header-font-size 6 --footer-font-size 6 --header-spacing 6 --footer-spacing 6 --header-center '[doctitle]' --footer-left '[subsection]' --footer-right '[page]' SWIGDocumentation.html SWIGDocumentation.pdf
 
 SWIGDocumentation.html: swightml.book