From 93a08378e62b5d9ca3ea1b54ce8f5be2995201f1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 21 Oct 2011 02:13:08 +0200 Subject: Tweak build scripts for iOS viewer. --- scripts/cmapdump.c | 3 ++- scripts/fontdump.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c index 16ef1b8a..68a5c3cf 100644 --- a/scripts/cmapdump.c +++ b/scripts/cmapdump.c @@ -142,7 +142,8 @@ main(int argc, char **argv) fprintf(fo, "};\n"); - printf("\t{\"%s\",&cmap_%s},\n", cmap->cmap_name, name); + if (getenv("verbose")) + printf("\t{\"%s\",&cmap_%s},\n", cmap->cmap_name, name); fz_close(fi); } diff --git a/scripts/fontdump.c b/scripts/fontdump.c index e40bf4ab..34d996a4 100644 --- a/scripts/fontdump.c +++ b/scripts/fontdump.c @@ -1,6 +1,7 @@ /* fontdump.c -- an "xxd -i" workalike for dumping binary fonts as source code */ #include +#include #include static int @@ -88,7 +89,8 @@ main(int argc, char **argv) len = ftell(fi); fseek(fi, 0, SEEK_SET); - printf("\t{\"%s\",pdf_font_%s,%d},\n", origname, fontname, len); + if (getenv("verbose")) + printf("\t{\"%s\",pdf_font_%s,%d},\n", origname, fontname, len); fprintf(fo, "\n#ifdef HAVE_INCBIN\n"); fprintf(fo, "extern const unsigned char pdf_font_%s[%d];\n", fontname, len); -- cgit v1.2.3