mirror of
https://github.com/qpdf/qpdf.git
synced 2024-05-29 08:20:53 +00:00
better acroread check
git-svn-id: svn+q:///qpdf/trunk@926 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
parent
8fbba4d48c
commit
d01c1ba1c6
|
@ -26,15 +26,11 @@ my $have_acroread = 0;
|
|||
|
||||
if ($compare_images)
|
||||
{
|
||||
# check for acroread
|
||||
my @path = split(':', $ENV{'PATH'});
|
||||
foreach my $p (@path)
|
||||
# check for working acroread
|
||||
if (system("acroread -toPostScript -pairs good1.pdf a.ps" .
|
||||
" >/dev/null 2>&1") == 0)
|
||||
{
|
||||
if (-x "$p/acroread")
|
||||
{
|
||||
$have_acroread = 1;
|
||||
last;
|
||||
}
|
||||
$have_acroread = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user