From: gord-fig Date: Tue, 17 Sep 2002 20:11:35 +0000 (+0000) Subject: Look for compat flag in GS_OPTIONS. X-Git-Tag: 0.5.8~12 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4715563785b366095a6e9a6f04fd30c63a1a7600;p=fs%2Flustre-release.git Look for compat flag in GS_OPTIONS. --- diff --git a/lustre/doc/tex2pdf b/lustre/doc/tex2pdf index d2c5738..d9a7176 100755 --- a/lustre/doc/tex2pdf +++ b/lustre/doc/tex2pdf @@ -1418,7 +1418,11 @@ sub check_commands { &checkCommand("epstopdf","See pdftex homepage for details: http://tug.org/applications/pdftex"); $exec_epstopdf = `which epstopdf`; chomp $exec_epstopdf; - if (&grep_file($exec_epstopdf, "-dCompatibilityLevel=1\\.1", $TRUE) > 0) { + my $compat = "-dCompatibilityLevel=1\\.1"; + if (defined($ENV{'GS_OPTIONS'}) && $ENV{'GS_OPTIONS'} =~ /$compat/o) { + &report(9, "Good: ghostscript option '-dCompatibilityLevel=1.1' detected " + ."in\n'\$GS_OPTIONS'."); + } elsif (&grep_file($exec_epstopdf, $compat, $TRUE) > 0) { &report(9, "Good: ghostscript option '-dCompatibilityLevel=1.1' detected " ."in\n'$exec_epstopdf'."); } else {