From ac32eba506cc20d1e7c5f45dbaa10436b84e0a7f Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 8 Feb 2008 08:36:29 +0000 Subject: 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 --- Build/source/texk/texlive/Makefile.in | 3 ++- Build/source/texk/texlive/generate-fmtutil | 39 +++++++++++++++++++++++++++++ Build/source/texk/texlive/generate-language | 39 +++++++++++++++++++++++++++++ Build/source/texk/texlive/generate-updmap | 39 +++++++++++++++++++++++++++++ 4 files changed, 119 insertions(+), 1 deletion(-) create mode 100755 Build/source/texk/texlive/generate-fmtutil create mode 100755 Build/source/texk/texlive/generate-language create mode 100755 Build/source/texk/texlive/generate-updmap (limited to 'Build') diff --git a/Build/source/texk/texlive/Makefile.in b/Build/source/texk/texlive/Makefile.in index 42576e88ef7..901fa22f6e8 100644 --- a/Build/source/texk/texlive/Makefile.in +++ b/Build/source/texk/texlive/Makefile.in @@ -8,7 +8,8 @@ kpse_include ../make/programs.mk LIVESCRIPTS = simpdftex \ ebong getnonfreefonts giftopng \ - pdfthumb perltex pkfix ppower4 vpe wordcount.sh + pdfthumb perltex pkfix ppower4 vpe wordcount.sh \ + generate-updmap generate-language generate-fmtutil manpgs = getnonfreefonts getnonfreefonts-sys diff --git a/Build/source/texk/texlive/generate-fmtutil b/Build/source/texk/texlive/generate-fmtutil new file mode 100755 index 00000000000..efa451eb423 --- /dev/null +++ b/Build/source/texk/texlive/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) diff --git a/Build/source/texk/texlive/generate-language b/Build/source/texk/texlive/generate-language new file mode 100755 index 00000000000..1180c984881 --- /dev/null +++ b/Build/source/texk/texlive/generate-language @@ -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/Build/source/texk/texlive/generate-updmap b/Build/source/texk/texlive/generate-updmap new file mode 100755 index 00000000000..ca362add834 --- /dev/null +++ b/Build/source/texk/texlive/generate-updmap @@ -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) -- cgit v1.2.3