texlive[64296] Master: Adjustments on w32 for added 64-bit
commits+siepo at tug.org
commits+siepo at tug.org
Mon Sep 5 21:26:00 CEST 2022
Revision: 64296
http://tug.org/svn/texlive?view=revision&revision=64296
Author: siepo
Date: 2022-09-05 21:26:00 +0200 (Mon, 05 Sep 2022)
Log Message:
-----------
Adjustments on w32 for added 64-bit Ghostscript
Modified Paths:
--------------
trunk/Master/bin/win32/runscript.tlu
trunk/Master/texmf-dist/scripts/epstopdf/epstopdf.pl
Modified: trunk/Master/bin/win32/runscript.tlu
===================================================================
--- trunk/Master/bin/win32/runscript.tlu 2022-09-05 06:24:57 UTC (rev 64295)
+++ trunk/Master/bin/win32/runscript.tlu 2022-09-05 19:26:00 UTC (rev 64296)
@@ -712,12 +712,18 @@
..TEXDIR..'/tlpkg/tlgs/Resource;'
..TEXDIR..'/tlpkg/tlgs/kanji;'
..os.getenv('WINDIR')..'/Fonts;'..TEXMFDIST..'/fonts')
- os.setenv('GS_DLL', TEXDIR..'/tlpkg/tlgs/bin/gsdll32.dll')
- GSEXE = TEXDIR..'/tlpkg/tlgs/bin/gswin32c.exe'
- GSNAME = 'gswin32c.exe'
- GSDIR = TEXDIR..'/tlpkg/tlgs/bin'
+ if is_64bit_windows_os() then
+ os.setenv('GS_DLL', TEXDIR..'/tlpkg/tlgs/bin/gsdll64.dll')
+ GSEXE = TEXDIR..'/tlpkg/tlgs/bin/gswin64c.exe'
+ GSNAME = 'gswin64c.exe'
+ else
+ os.setenv('GS_DLL', TEXDIR..'/tlpkg/tlgs/bin/gsdll32.dll')
+ GSEXE = TEXDIR..'/tlpkg/tlgs/bin/gswin32c.exe'
+ GSNAME = 'gswin32c.exe'
+ end
end
-- now setup the path so that the gs program will be found
+GSDIR = TEXDIR..'/tlpkg/tlgs/bin'
PATH = prepend_path(PATH, GSDIR, BINDIR)
os.setenv('PATH', PATH);
Modified: trunk/Master/texmf-dist/scripts/epstopdf/epstopdf.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/epstopdf/epstopdf.pl 2022-09-05 06:24:57 UTC (rev 64295)
+++ trunk/Master/texmf-dist/scripts/epstopdf/epstopdf.pl 2022-09-05 19:26:00 UTC (rev 64296)
@@ -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 @@
### 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;
+ }
+ }
}
}
More information about the tex-live-commits
mailing list.