summaryrefslogtreecommitdiff
path: root/Master/bin/i386-linux/generate-fmtutil
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/i386-linux/generate-fmtutil
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/i386-linux/generate-fmtutil')
-rwxr-xr-xMaster/bin/i386-linux/generate-fmtutil39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/bin/i386-linux/generate-fmtutil b/Master/bin/i386-linux/generate-fmtutil
new file mode 100755
index 00000000000..efa451eb423
--- /dev/null
+++ b/Master/bin/i386-linux/generate-fmtutil
@@ -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)