From bb4e1a7a425f2dec1173950cca12e6fd4bba0047 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 6 Apr 2021 11:16:53 +0000 Subject: fmtutil.pl: work around Windows kpsewhich incompatibility patch by Akira Kakuto git-svn-id: svn://tug.org/texlive/trunk@58769 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/fmtutil.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/scripts/texlive') diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl index dab304429b3..4c8aa7ede59 100755 --- a/Master/texmf-dist/scripts/texlive/fmtutil.pl +++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl @@ -379,8 +379,11 @@ sub callback_build_formats { # code taken over from the original shell script for KPSE_DOT etc my $thisdir = cwd(); - $ENV{'KPSE_DOT'} = $thisdir; - + if (win32()) { + $ENV{'KPSE_DOT'} = "$thisdir$sep."; + } else { + $ENV{'KPSE_DOT'} = $thisdir; + } # due to KPSE_DOT, we don't search the current directory, so include # it explicitly for formats that \write and later on \read $ENV{'TEXINPUTS'} ||= ""; -- cgit v1.2.3