summaryrefslogtreecommitdiff
path: root/Master/bin/win32
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-02-08 09:50:40 +0000
committerNorbert Preining <preining@logic.at>2008-02-08 09:50:40 +0000
commit6194c8002edb7c1e239b8bec0085eece1e3932cd (patch)
tree7a1f803671a7e24f6e7cc72dae8a5638eeedd175 /Master/bin/win32
parentd397a102a115a327cf19b194d672fba719fbfeff (diff)
update generate scripts
git-svn-id: svn://tug.org/texlive/trunk@6539 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/win32')
-rwxr-xr-xMaster/bin/win32/generate-fmtutil.texlua16
-rwxr-xr-xMaster/bin/win32/generate-language.texlua14
-rwxr-xr-xMaster/bin/win32/generate-updmap.texlua14
3 files changed, 34 insertions, 10 deletions
diff --git a/Master/bin/win32/generate-fmtutil.texlua b/Master/bin/win32/generate-fmtutil.texlua
index efa451eb423..b639dad34eb 100755
--- a/Master/bin/win32/generate-fmtutil.texlua
+++ b/Master/bin/win32/generate-fmtutil.texlua
@@ -1,6 +1,6 @@
-#!/xusr/bin/env texlua
+#!/usr/bin/env texlua
--*-Lua-*-
--- $Id: generate-updmap.fmtutil 6485 2008-02-01 20:15:06Z reinhardk $
+-- $Id: generate-fmtutil.texlua 6485 2008-02-01 20:15:06Z reinhardk $
-- Copyright (C) 2007 2008 Reinhard Kotucha, Norbert Preining
-- You may freely use, modify and/or distribute this file.
@@ -24,9 +24,16 @@ kpse.set_program_name(basename)
TEXDIR=kpse.var_value("SELFAUTOPARENT")
-os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
+-- 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
+end
-perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
script=kpse.find_file(basename..".pl", "texmfscripts")
command={perlbin, script}
@@ -37,3 +44,4 @@ end
ret=os.spawn(command)
os.exit(ret)
+
diff --git a/Master/bin/win32/generate-language.texlua b/Master/bin/win32/generate-language.texlua
index 1180c984881..3acd87edc46 100755
--- a/Master/bin/win32/generate-language.texlua
+++ b/Master/bin/win32/generate-language.texlua
@@ -1,4 +1,4 @@
-#!/xusr/bin/env texlua
+#!/usr/bin/env texlua
--*-Lua-*-
-- $Id: generate-language.texlua 6485 2008-02-01 20:15:06Z reinhardk $
@@ -24,9 +24,16 @@ kpse.set_program_name(basename)
TEXDIR=kpse.var_value("SELFAUTOPARENT")
-os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
+-- 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
+end
-perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
script=kpse.find_file(basename..".pl", "texmfscripts")
command={perlbin, script}
@@ -37,3 +44,4 @@ end
ret=os.spawn(command)
os.exit(ret)
+
diff --git a/Master/bin/win32/generate-updmap.texlua b/Master/bin/win32/generate-updmap.texlua
index ca362add834..321b385f6b9 100755
--- a/Master/bin/win32/generate-updmap.texlua
+++ b/Master/bin/win32/generate-updmap.texlua
@@ -1,4 +1,4 @@
-#!/xusr/bin/env texlua
+#!/usr/bin/env texlua
--*-Lua-*-
-- $Id: generate-updmap.texlua 6485 2008-02-01 20:15:06Z reinhardk $
@@ -24,9 +24,16 @@ kpse.set_program_name(basename)
TEXDIR=kpse.var_value("SELFAUTOPARENT")
-os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
+-- 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
+end
-perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
script=kpse.find_file(basename..".pl", "texmfscripts")
command={perlbin, script}
@@ -37,3 +44,4 @@ end
ret=os.spawn(command)
os.exit(ret)
+