diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-10-21 02:13:08 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-11-01 23:46:56 +0100 |
commit | 93a08378e62b5d9ca3ea1b54ce8f5be2995201f1 (patch) | |
tree | c26c400021cc2afbb2298171a35794f1a82e07ab /scripts | |
parent | b06b5688658c92140491546c25fb60d0ae22e146 (diff) | |
download | mupdf-93a08378e62b5d9ca3ea1b54ce8f5be2995201f1.tar.xz |
Tweak build scripts for iOS viewer.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/cmapdump.c | 3 | ||||
-rw-r--r-- | scripts/fontdump.c | 4 |
2 files changed, 5 insertions, 2 deletions
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 <stdio.h> +#include <stdlib.h> #include <string.h> 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); |