summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBuild/source/texk/texlive/generate-fmtutil9
-rwxr-xr-xBuild/source/texk/texlive/generate-language9
-rwxr-xr-xBuild/source/texk/texlive/generate-updmap9
3 files changed, 9 insertions, 18 deletions
diff --git a/Build/source/texk/texlive/generate-fmtutil b/Build/source/texk/texlive/generate-fmtutil
index 1089cd2d921..85bd03814ff 100755
--- a/Build/source/texk/texlive/generate-fmtutil
+++ b/Build/source/texk/texlive/generate-fmtutil
@@ -25,13 +25,10 @@ kpse.set_program_name(basename)
TEXDIR=kpse.var_value("SELFAUTOPARENT")
-- if we are on win32 we have to use the shipped perl
-ostype = os.getenv("OS")
perlbin="perl"
-if (ostype) then
- if string.find(ostype, "Windows") then
- os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
- perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
- end
+if (os.type == "windows") then
+ os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
+ perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
end
script=kpse.find_file(basename..".pl", "texmfscripts")
diff --git a/Build/source/texk/texlive/generate-language b/Build/source/texk/texlive/generate-language
index b2013a3c8ca..16f80abaf06 100755
--- a/Build/source/texk/texlive/generate-language
+++ b/Build/source/texk/texlive/generate-language
@@ -25,13 +25,10 @@ kpse.set_program_name(basename)
TEXDIR=kpse.var_value("SELFAUTOPARENT")
-- if we are on win32 we have to use the shipped perl
-ostype = os.getenv("OS")
perlbin="perl"
-if (ostype) then
- if string.find(ostype, "Windows") then
- os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
- perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
- end
+if (os.type == "windows") then
+ os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
+ perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
end
script=kpse.find_file(basename..".pl", "texmfscripts")
diff --git a/Build/source/texk/texlive/generate-updmap b/Build/source/texk/texlive/generate-updmap
index 30549144271..ce6ca0ec093 100755
--- a/Build/source/texk/texlive/generate-updmap
+++ b/Build/source/texk/texlive/generate-updmap
@@ -25,13 +25,10 @@ kpse.set_program_name(basename)
TEXDIR=kpse.var_value("SELFAUTOPARENT")
-- if we are on win32 we have to use the shipped perl
-ostype = os.getenv("OS")
perlbin="perl"
-if (ostype) then
- if string.find(ostype, "Windows") then
- os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
- perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
- end
+if (os.type == "windows") then
+ os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
+ perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
end
script=kpse.find_file(basename..".pl", "texmfscripts")