From 3cd1162b53f1b2857c3728c3a3459b37a4ea8aa3 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 8 Feb 2008 10:26:52 +0000 Subject: use os.type from latest texlua git-svn-id: svn://tug.org/texlive/trunk@6545 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/i386-linux/generate-fmtutil | 9 +++------ Master/bin/i386-linux/generate-language | 9 +++------ Master/bin/i386-linux/generate-updmap | 9 +++------ 3 files changed, 9 insertions(+), 18 deletions(-) (limited to 'Master/bin/i386-linux') diff --git a/Master/bin/i386-linux/generate-fmtutil b/Master/bin/i386-linux/generate-fmtutil index 1089cd2d921..85bd03814ff 100755 --- a/Master/bin/i386-linux/generate-fmtutil +++ b/Master/bin/i386-linux/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/Master/bin/i386-linux/generate-language b/Master/bin/i386-linux/generate-language index b2013a3c8ca..16f80abaf06 100755 --- a/Master/bin/i386-linux/generate-language +++ b/Master/bin/i386-linux/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/Master/bin/i386-linux/generate-updmap b/Master/bin/i386-linux/generate-updmap index 30549144271..ce6ca0ec093 100755 --- a/Master/bin/i386-linux/generate-updmap +++ b/Master/bin/i386-linux/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") -- cgit v1.2.3