diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2022-09-05 19:26:00 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2022-09-05 19:26:00 +0000 |
commit | 71b44089a400cb95737e9d6434c0f8ddaeb731ee (patch) | |
tree | 8c1a4fe5891044f9302637c2d9898218caa18066 /Master/texmf-dist/scripts | |
parent | 74cc2173608e141854ec12ee77e84f48fad6fd37 (diff) |
Adjustments on w32 for added 64-bit Ghostscript
git-svn-id: svn://tug.org/texlive/trunk@64296 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-x | Master/texmf-dist/scripts/epstopdf/epstopdf.pl | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/epstopdf/epstopdf.pl b/Master/texmf-dist/scripts/epstopdf/epstopdf.pl index 43ce79e5206..a84ec10097f 100755 --- a/Master/texmf-dist/scripts/epstopdf/epstopdf.pl +++ b/Master/texmf-dist/scripts/epstopdf/epstopdf.pl @@ -35,7 +35,8 @@ # # emacs-page # -my $ver = "2.29"; +my $ver = "2.30"; +# 2022/09/05 v2.30 (Siep Kroonenberg) # 2022/08/29 v2.29 (Karl Berry) # 2018/09/17 v2.28 (Karl Berry) # * use gswin64c on 64-bit Windows. @@ -207,11 +208,18 @@ my $on_windows_or_cygwin = $on_windows || $^O eq "cygwin"; ### ghostscript command name my $GS = "gs"; if ($on_windows) { + $GS = "gswin32c"; if ($ENV{"PROCESSOR_ARCHITECTURE"} eq "AMD64" || $ENV{"PROCESSOR_ARCHITEW6432"} eq "AMD64") { - $GS = "gswin64c"; - } else { - $GS = "gswin32c"; + # prefer gswin64c.exe if on searchpath + my @pdirs = split( /;/, $ENV{"PATH"}); + foreach $d (@pdirs) { + $d = substr ($d, 1, -1) if (substr ($d,1,1) eq '"'); + if (-f $d . "/gswin64c.exe") { + $GS = "gswin64c"; + last; + } + } } } |