>From 847855f817eaf1778d0c6a4bc6fb58f9541ba6f0 Mon Sep 17 00:00:00 2001 From: Akira Yokosawa <akiyks@xxxxxxxxx> Date: Fri, 20 May 2016 20:45:14 +0900 Subject: [PATCH] runlatex.sh: Band-aide fix of false positive in font check inkscape's font embedding seems to depend on the version of cairo. This commit restricts the check in runlatex.sh to a specific version of cairo (1.13.1). When more info is available on the version range we can check in this way, the restriction can be loosened. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- utilities/runlatex.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/utilities/runlatex.sh b/utilities/runlatex.sh index 9ae9021..0be1229 100644 --- a/utilities/runlatex.sh +++ b/utilities/runlatex.sh @@ -113,12 +113,15 @@ echo "'$basename.pdf' is ready." # to avoid redundant run of bibtex and pdflatex touch $basename.bbl touch $basename.pdf -if ! grep -q -i "steel city comic" cartoons/*.pdf +if strings cartoons/r-2014-Old-man-and-Brat.pdf | grep -q -i "cairo 1.13.1" then - echo "#######################################################################" - echo "## Steel City Comic font is not found in the resulting PDF! ##" - echo "## Some speech balloons in the cartoons have been rendered awkwardly. ##" - echo "## See item 1 in FAQ-BUILD.txt for the solution. ##" - echo "#######################################################################" + if ! strings cartoons/r-2014-Old-man-and-Brat.pdf | grep -q -i "steel city comic" + then + echo "#######################################################################" + echo "## Steel City Comic font is not found in the resulting PDF! ##" + echo "## Some speech balloons in the cartoons have been rendered awkwardly.##" + echo "## See item 1 in FAQ-BUILD.txt for the solution. ##" + echo "#######################################################################" + fi fi exit 0 -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe perfbook" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html