summaryrefslogtreecommitdiff
path: root/Master/bin/i386-linux
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/i386-linux
parentd397a102a115a327cf19b194d672fba719fbfeff (diff)
update generate scripts
git-svn-id: svn://tug.org/texlive/trunk@6539 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/i386-linux')
-rwxr-xr-xMaster/bin/i386-linux/generate-fmtutil16
-rwxr-xr-xMaster/bin/i386-linux/generate-language14
-rwxr-xr-xMaster/bin/i386-linux/generate-updmap14
3 files changed, 34 insertions, 10 deletions
diff --git a/Master/bin/i386-linux/generate-fmtutil b/Master/bin/i386-linux/generate-fmtutil
index efa451eb423..b639dad34eb 100755
--- a/Master/bin/i386-linux/generate-fmtutil
+++ b/Master/bin/i386-linux/generate-fmtutil
@@ -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/i386-linux/generate-language b/Master/bin/i386-linux/generate-language
index 1180c984881..3acd87edc46 100755
--- a/Master/bin/i386-linux/generate-language
+++ b/Master/bin/i386-linux/generate-language
@@ -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/i386-linux/generate-updmap b/Master/bin/i386-linux/generate-updmap
index ca362add834..321b385f6b9 100755
--- a/Master/bin/i386-linux/generate-updmap
+++ b/Master/bin/i386-linux/generate-updmap
@@ -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)
+