diff options
author | Karl Berry <karl@freefriends.org> | 2007-03-23 19:01:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-03-23 19:01:22 +0000 |
commit | f0c9e514f6a42d6df94a4d458f2ee97f355f1822 (patch) | |
tree | 4b52438fe38a2f3332c2019115d9ac2bedf0e6dc /Build/source/texk/dvipsk/dvips.c | |
parent | 67530ee162aa3756a2b324eed8774d6e5223b9f9 (diff) |
more pathname reporting, if DVIPS_DEBUG is set
git-svn-id: svn://tug.org/texlive/trunk@4079 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk/dvips.c')
-rw-r--r-- | Build/source/texk/dvipsk/dvips.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Build/source/texk/dvipsk/dvips.c b/Build/source/texk/dvipsk/dvips.c index 8a8134c7fae..0a29f382efd 100644 --- a/Build/source/texk/dvipsk/dvips.c +++ b/Build/source/texk/dvipsk/dvips.c @@ -159,6 +159,7 @@ integer swmem ; /* font memory in the PostScript printer */ int quiet ; /* should we only print errors to stderr? */ int filter ; /* act as filter default output to stdout, default input to stdin? */ +int dvips_debug_flag ; /* output config and map files to stderr if 1 */ int prettycolumn ; /* the column we are at when running pretty */ int gargc ; /* global argument count */ char **gargv ; /* global argument vector */ @@ -630,6 +631,14 @@ Primary author of Dvips: T. Rokicki; -k maintainer: T. Kacvinsky/ S. Rahtz."); } #endif #endif + dvips_debug_flag = 0 ; + { /* for compilers incompatible with c99 */ + char *s = (char *)getenv ("DVIPS_DEBUG") ; + if (s) { + dvips_debug_flag = 1 ; + free (s) ; + } + } initialize() ; checkenv(0) ; getdefaults(CONFIGFILE) ; @@ -1116,8 +1125,14 @@ default: revpslists() ; getpsinfo((char *)NULL) ; revpslists() ; - if (!quiet) - (void)fprintf(stderr, "%s %s\n", banner, banner2) ; + if (dvips_debug_flag) { + if (!quiet) + (void)fprintf(stderr, "\n%s %s\n", banner, banner2) ; + prettycolumn = 0 ; + } else { + if (!quiet) + (void)fprintf(stderr, "%s %s\n", banner, banner2) ; + } if (*iname) { dvifile = fopen(iname, READBIN) ; /* |