summaryrefslogtreecommitdiff
path: root/Master/bin/win32
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-02-08 08:36:29 +0000
committerNorbert Preining <preining@logic.at>2008-02-08 08:36:29 +0000
commitac32eba506cc20d1e7c5f45dbaa10436b84e0a7f (patch)
treeccea71324156ab8bf9b8f2c49b3f034e615116a4 /Master/bin/win32
parent4fbb12efeffdffdf5a17b95f132ed4cc06300586 (diff)
generate-* move:
- put the perl scripts into Master/texmf/scripts/texlive/ - put .texlua wrappers in Build/source/texk/texlive and install these wrappers into Master/bin/$arch (without extension since we do that on unix) - add these texlua scripts to bin/i386-linux and (with .texlua) to bin/win32 - put the perl scripts and the wrappers into the bin-tetex tlpsrc - remove the rest from tlpkg/installer git-svn-id: svn://tug.org/texlive/trunk@6530 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/win32')
-rwxr-xr-xMaster/bin/win32/generate-fmtutil.texlua39
-rwxr-xr-xMaster/bin/win32/generate-language.texlua39
-rwxr-xr-xMaster/bin/win32/generate-updmap.texlua39
3 files changed, 117 insertions, 0 deletions
diff --git a/Master/bin/win32/generate-fmtutil.texlua b/Master/bin/win32/generate-fmtutil.texlua
new file mode 100755
index 00000000000..efa451eb423
--- /dev/null
+++ b/Master/bin/win32/generate-fmtutil.texlua
@@ -0,0 +1,39 @@
+#!/xusr/bin/env texlua
+--*-Lua-*-
+-- $Id: generate-updmap.fmtutil 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.
+
+-- Wrapper for Perl scripts.
+
+
+if string.find(arg[0], "/") then -- UNIX path
+ filename=select(1, string.gsub(arg[0], ".*/", ""))
+elseif string.find(arg[0], "\\") then -- Windows path
+ filename=select(1, string.gsub(arg[0], ".*\\", ""))
+else -- no path
+ filename=arg[0]
+end
+
+basename=select(1, string.gsub(filename, "\.texlua$", ""))
+
+basename="generate-fmtutil"
+
+kpse.set_program_name(basename)
+
+TEXDIR=kpse.var_value("SELFAUTOPARENT")
+
+os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
+
+perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
+script=kpse.find_file(basename..".pl", "texmfscripts")
+
+command={perlbin, script}
+
+for i=1, #arg do
+ command[#command+1]=arg[i]
+end
+
+ret=os.spawn(command)
+os.exit(ret)
diff --git a/Master/bin/win32/generate-language.texlua b/Master/bin/win32/generate-language.texlua
new file mode 100755
index 00000000000..1180c984881
--- /dev/null
+++ b/Master/bin/win32/generate-language.texlua
@@ -0,0 +1,39 @@
+#!/xusr/bin/env texlua
+--*-Lua-*-
+-- $Id: generate-language.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.
+
+-- Wrapper for Perl scripts.
+
+
+if string.find(arg[0], "/") then -- UNIX path
+ filename=select(1, string.gsub(arg[0], ".*/", ""))
+elseif string.find(arg[0], "\\") then -- Windows path
+ filename=select(1, string.gsub(arg[0], ".*\\", ""))
+else -- no path
+ filename=arg[0]
+end
+
+basename=select(1, string.gsub(filename, "\.texlua$", ""))
+
+basename="generate-language"
+
+kpse.set_program_name(basename)
+
+TEXDIR=kpse.var_value("SELFAUTOPARENT")
+
+os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
+
+perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
+script=kpse.find_file(basename..".pl", "texmfscripts")
+
+command={perlbin, script}
+
+for i=1, #arg do
+ command[#command+1]=arg[i]
+end
+
+ret=os.spawn(command)
+os.exit(ret)
diff --git a/Master/bin/win32/generate-updmap.texlua b/Master/bin/win32/generate-updmap.texlua
new file mode 100755
index 00000000000..ca362add834
--- /dev/null
+++ b/Master/bin/win32/generate-updmap.texlua
@@ -0,0 +1,39 @@
+#!/xusr/bin/env texlua
+--*-Lua-*-
+-- $Id: generate-updmap.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.
+
+-- Wrapper for Perl scripts.
+
+
+if string.find(arg[0], "/") then -- UNIX path
+ filename=select(1, string.gsub(arg[0], ".*/", ""))
+elseif string.find(arg[0], "\\") then -- Windows path
+ filename=select(1, string.gsub(arg[0], ".*\\", ""))
+else -- no path
+ filename=arg[0]
+end
+
+basename=select(1, string.gsub(filename, "\.texlua$", ""))
+
+basename="generate-updmap"
+
+kpse.set_program_name(basename)
+
+TEXDIR=kpse.var_value("SELFAUTOPARENT")
+
+os.setenv("PERL5LIB", TEXDIR.."/tlpkg/tlperl/lib")
+
+perlbin=TEXDIR.."/tlpkg/tlperl/bin/perl.exe"
+script=kpse.find_file(basename..".pl", "texmfscripts")
+
+command={perlbin, script}
+
+for i=1, #arg do
+ command[#command+1]=arg[i]
+end
+
+ret=os.spawn(command)
+os.exit(ret)