diff options
Diffstat (limited to 'Master/tlpkg/installer')
-rwxr-xr-x | Master/tlpkg/installer/archive2.dll | bin | 0 -> 159744 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/bsdtar.exe | bin | 0 -> 59392 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/bzip2.dll | bin | 0 -> 68608 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/generate-fmtutil | 104 | ||||
-rwxr-xr-x | Master/tlpkg/installer/generate-language | 101 | ||||
-rwxr-xr-x | Master/tlpkg/installer/generate-updmap | 107 | ||||
-rwxr-xr-x | Master/tlpkg/installer/lzmadec.i386-linux | bin | 0 -> 10608 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/lzmadec.win32.exe | bin | 0 -> 12288 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/lzmadec.x86_64-linux | bin | 0 -> 14728 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/msys-1.0.dll | bin | 0 -> 734024 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/perl.exe | bin | 0 -> 5632 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/perl58.dll | bin | 0 -> 1098752 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/uninstall-tl.bat | 24 | ||||
-rwxr-xr-x | Master/tlpkg/installer/uninstall-tl.pl | 85 | ||||
-rwxr-xr-x | Master/tlpkg/installer/wget.exe | bin | 0 -> 332800 bytes | |||
-rwxr-xr-x | Master/tlpkg/installer/zlib1.dll | bin | 0 -> 72192 bytes |
16 files changed, 421 insertions, 0 deletions
diff --git a/Master/tlpkg/installer/archive2.dll b/Master/tlpkg/installer/archive2.dll Binary files differnew file mode 100755 index 00000000000..1aaa96f9797 --- /dev/null +++ b/Master/tlpkg/installer/archive2.dll diff --git a/Master/tlpkg/installer/bsdtar.exe b/Master/tlpkg/installer/bsdtar.exe Binary files differnew file mode 100755 index 00000000000..f3c15f0eee1 --- /dev/null +++ b/Master/tlpkg/installer/bsdtar.exe diff --git a/Master/tlpkg/installer/bzip2.dll b/Master/tlpkg/installer/bzip2.dll Binary files differnew file mode 100755 index 00000000000..f56dfac78ec --- /dev/null +++ b/Master/tlpkg/installer/bzip2.dll diff --git a/Master/tlpkg/installer/generate-fmtutil b/Master/tlpkg/installer/generate-fmtutil new file mode 100755 index 00000000000..c616ec9e330 --- /dev/null +++ b/Master/tlpkg/installer/generate-fmtutil @@ -0,0 +1,104 @@ +#!/usr/bin/env perl +# $Id: generate-fmtutil 5188 2007-10-14 20:32:44Z karl $ +# Copyright 2007 Norbert Preining. +# This file is licensed under the GNU General Public License version 2 +# or any later version. +# +# generate fmtutil.cnf file from the data in the tlpdb and -- if present +# -- with TEXMFLOCAL/web2c/fmtutil-local.cnf + +BEGIN { + $^W = 1; + ($mydir = $0) =~ s,/[^/]*$,,; + unshift (@INC, "$mydir/.."); +} + +use strict; + +use TeXLive::TLConfig; +use TeXLive::TLPOBJ; +use TeXLive::TLPDB; +use TeXLive::TLUtils qw/kpsewhich tllog/; +use Getopt::Long; +use Pod::Usage; +use File::Path; +use Cwd 'abs_path'; + +our $mydir; +my $opt_debug = 0; +my $help = 0; +my $dest = ""; +my $localconf = ""; + +GetOptions("debug!", "dest=s" => \$dest, + "local=s" => \$localconf, "help|?" => \$help) or pod2usage(1); + +pod2usage(-exitstatus => 0, -verbose => 2) if $help; + +if ($opt_debug) { + $::LOGLEVELFILE = $::LOG_DDDEBUG; + $::LOGLEVELTERMINAL = $::LOG_DDDEBUG; +} + +exit (&main ()); + +sub main +{ + # get the db. + my $Master = abs_path("$mydir/../.."); + my $tlpdb = TeXLive::TLPDB->new ("root" => "$Master"); + if (!defined($tlpdb)) { + die "Cannot find texlive.tlpdb below $Master: $!\n"; + } + $dest || ($dest = kpsewhich("TEXMFSYSVAR") . "/web2c/fmtutil.cnf"); + $localconf || ($localconf = kpsewhich("TEXMFLOCAL") . "/web2c/fmtutil-local.cnf"); + tllog($::LOG_NORMAL, "writing fmtutil.cnf data to $dest\n"); + TeXLive::TLUtils::create_fmtutil($tlpdb, $dest, $localconf); +} + + +__END__ + +=head1 NAME + +generate-fmtutil - generate fmtutil.cnf from a TLPDB and local additions + +=head1 SYNOPSIS + +generate-fmtutil [OPTION]... + +=head1 OPTIONS + +=over 8 + +=item C<-dest> I<output file> + +specifies the output file + +=item C<-local> I<local conf file> + +specifies the local additions + +=back + +The standard options C<-help> and C<-debug> are accepted. +See the tlpfiles documentation for details. + +=head1 DESCRIPTION + +Missing + +=head1 AUTHORS AND COPYRIGHT + +This script and its documentation were written for the TeX Live +distribution (L<http://tug.org/texlive>) and both are licensed under the +GNU General Public License Version 2 or later. + +=cut + +### Local Variables: +### perl-indent-level: 2 +### tab-width: 2 +### indent-tabs-mode: nil +### End: +# vim:set tabstop=2 expandtab: # diff --git a/Master/tlpkg/installer/generate-language b/Master/tlpkg/installer/generate-language new file mode 100755 index 00000000000..dc82106aa69 --- /dev/null +++ b/Master/tlpkg/installer/generate-language @@ -0,0 +1,101 @@ +#!/usr/bin/env perl +# $Id: generate-language 5188 2007-10-14 20:32:44Z karl $ +# Copyright 2007 Norbert Preining. +# This file is licensed under the GNU General Public License version 2 +# or any later version. +# +# generate language.dat file from the data in the tlpdb and -- if present +# -- with TEXMFLOCAL/tex/generic/config/language-local.dat + +BEGIN { + $^W = 1; + ($mydir = $0) =~ s,/[^/]*$,,; + unshift (@INC, "$mydir/.."); +} + +use strict; + +use TeXLive::TLConfig; +use TeXLive::TLPOBJ; +use TeXLive::TLPDB; +use TeXLive::TLUtils qw/kpsewhich tllog/; +use Getopt::Long; +use Pod::Usage; +use File::Path; +use Cwd 'abs_path'; + +our $mydir; +my $opt_debug = 0; +my $help = 0; +my $dest = ""; +my $localconf = ""; + +GetOptions("debug!", "dest=s" => \$dest, + "local=s" => \$localconf, "help|?" => \$help) or pod2usage(1); + +pod2usage(-exitstatus => 0, -verbose => 2) if $help; + +if ($opt_debug) { + $::LOGLEVELFILE = $::LOG_DDDEBUG; + $::LOGLEVELTERMINAL = $::LOG_DDDEBUG; +} + +exit (&main ()); + +sub main +{ + # get the db. + my $Master = abs_path("$mydir/../.."); + my $tlpdb = TeXLive::TLPDB->new ("root" => "$Master"); + $dest || ($dest = kpsewhich("TEXMFSYSVAR") . "/tex/generic/config/language.dat"); + $localconf || ($localconf = kpsewhich("TEXMFLOCAL") . "/tex/generic/config/language-local.dat"); + tllog($::LOG_NORMAL, "writing language.dat data to $dest\n"); + TeXLive::TLUtils::create_language($tlpdb, $dest, $localconf); +} + + +__END__ + +=head1 NAME + +generate-language - generate language.dat from a TLPDB and local additions + +=head1 SYNOPSIS + +generate-language [OPTION]... + +=head1 OPTIONS + +=over 8 + +=item C<-dest> I<output file> + +specifies the output file + +=item C<-local> I<local conf file> + +specifies the local additions + +=back + +The standard options C<-help> and C<-debug> are accepted. +See the tlpfiles documentation for details. + +=head1 DESCRIPTION + +Missing + +=head1 AUTHORS AND COPYRIGHT + +This script and its documentation were written for the TeX Live +distribution (L<http://tug.org/texlive>) and both are licensed under the +GNU General Public License Version 2 or later. + +=cut + +### Local Variables: +### perl-indent-level: 2 +### tab-width: 2 +### indent-tabs-mode: nil +### End: +# vim:set tabstop=2 expandtab: # diff --git a/Master/tlpkg/installer/generate-updmap b/Master/tlpkg/installer/generate-updmap new file mode 100755 index 00000000000..bd4cca20038 --- /dev/null +++ b/Master/tlpkg/installer/generate-updmap @@ -0,0 +1,107 @@ +#!/usr/bin/env perl +# $Id: generate-updmap 5188 2007-10-14 20:32:44Z karl $ +# Copyright 2007 Norbert Preining. +# This file is licensed under the GNU General Public License version 2 +# or any later version. +# +# generate updmap.cfg file from the data in the tlpdb and -- if present +# -- with TEXMFLOCAL/web2c/updmap-local.cfg + +BEGIN { + $^W = 1; + ($mydir = $0) =~ s,/[^/]*$,,; + unshift (@INC, "$mydir/.."); +} + +use strict; + +use TeXLive::TLConfig; +use TeXLive::TLPOBJ; +use TeXLive::TLPDB; +use TeXLive::TLUtils qw/kpsewhich tllog/; +use Getopt::Long; +use Pod::Usage; +use File::Path; +use Cwd 'abs_path'; + +our $mydir; +my $opt_debug = 0; +my $help = 0; +my $dest = ""; +my $localconf = ""; + +GetOptions("debug!", "dest=s" => \$dest, "local=s" => \$localconf, + "help|?" => \$help) or pod2usage(1); + +pod2usage(-exitstatus => 0, -verbose => 2) if $help; + +if ($opt_debug) { + $::LOGLEVELFILE = $::LOG_DDDEBUG; + $::LOGLEVELTERMINAL = $::LOG_DDDEBUG; +} + +exit (&main ()); + +sub main +{ + # get the db. + my $Master = abs_path("$mydir/../.."); + my $tlpdb = TeXLive::TLPDB->new ("root" => "$Master"); + $dest || ($dest = kpsewhich("TEXMFSYSVAR") . "/web2c/updmap.cfg"); + $localconf || ($localconf = kpsewhich("TEXMFLOCAL") . "/web2c/updmap-local.cfg"); + tllog($::LOG_NORMAL, "$0: writing new updmap.cfg to $dest\n"); + TeXLive::TLUtils::create_updmap ($tlpdb, $dest, $localconf); +} + + +__END__ + +=head1 NAME + +generate-updmap - generate updmap.cfg from a TeX Live db and local additions + +=head1 SYNOPSIS + +generate-updmap [OPTION]... + +=head1 OPTIONS + +=over 8 + +=item C<-dest> I<output_file> + +specifies the output file; defaults to +C<$TEXMFSYSVAR/texmf/web2c/updmap.cfg>. + +=item C<-local> I<local_conf_file> + +specifies the local additions, if any; defaults to +C<$TEXMFLOCAL/web2c/updmap-local.cfg>. + +=back + +The standard options C<-help> and C<-debug> are accepted. +See the tlpfiles documentation for details. + +=head1 DESCRIPTION + +B<generate-updmap> creates an updated C<updmap.cfg> file with the C<Map> +and C<MixedMap> entries taken from the TL database, plus (optionally) +local additions. + +No repository actions are performed in any case. + +=head1 AUTHORS AND COPYRIGHT + +This script and its documentation were written for the TeX Live +distribution (L<http://tug.org/texlive>) and both are licensed under the +GNU General Public License Version 2 or later. + +=cut + +### Local Variables: +### perl-indent-level: 2 +### tab-width: 2 +### indent-tabs-mode: nil +### End: +# vim:set tabstop=2 expandtab: # diff --git a/Master/tlpkg/installer/lzmadec.i386-linux b/Master/tlpkg/installer/lzmadec.i386-linux Binary files differnew file mode 100755 index 00000000000..2f65a85340e --- /dev/null +++ b/Master/tlpkg/installer/lzmadec.i386-linux diff --git a/Master/tlpkg/installer/lzmadec.win32.exe b/Master/tlpkg/installer/lzmadec.win32.exe Binary files differnew file mode 100755 index 00000000000..f91c8eb26b5 --- /dev/null +++ b/Master/tlpkg/installer/lzmadec.win32.exe diff --git a/Master/tlpkg/installer/lzmadec.x86_64-linux b/Master/tlpkg/installer/lzmadec.x86_64-linux Binary files differnew file mode 100755 index 00000000000..884723f350c --- /dev/null +++ b/Master/tlpkg/installer/lzmadec.x86_64-linux diff --git a/Master/tlpkg/installer/msys-1.0.dll b/Master/tlpkg/installer/msys-1.0.dll Binary files differnew file mode 100755 index 00000000000..4d57f49676d --- /dev/null +++ b/Master/tlpkg/installer/msys-1.0.dll diff --git a/Master/tlpkg/installer/perl.exe b/Master/tlpkg/installer/perl.exe Binary files differnew file mode 100755 index 00000000000..30108d9a8cc --- /dev/null +++ b/Master/tlpkg/installer/perl.exe diff --git a/Master/tlpkg/installer/perl58.dll b/Master/tlpkg/installer/perl58.dll Binary files differnew file mode 100755 index 00000000000..d783261a862 --- /dev/null +++ b/Master/tlpkg/installer/perl58.dll diff --git a/Master/tlpkg/installer/uninstall-tl.bat b/Master/tlpkg/installer/uninstall-tl.bat new file mode 100755 index 00000000000..ed18ef8010f --- /dev/null +++ b/Master/tlpkg/installer/uninstall-tl.bat @@ -0,0 +1,24 @@ +@echo off
+
+rem TeX Live Root; ends with backslash
+rem This should also work with UNC names
+set tlroot=%~dp0
+set tldrive=%~d0
+
+%tldrive%
+cd %tlroot%
+
+rem use provided Perl
+
+set PERL5SAVE=%PERL5LIB%
+
+set PERL5LIB=%tlroot%..\tlperl\lib
+"%tlroot%..\tlperl\bin\perl" "%tlroot%uninstall-tl.pl" %*
+rem pause Done
+
+rem cleanup in case of start from command-line
+
+set PERL5LIB=%PERL5SAVE%
+set PERL5SAVE=
+set tldrive=
+set tlroot=
diff --git a/Master/tlpkg/installer/uninstall-tl.pl b/Master/tlpkg/installer/uninstall-tl.pl new file mode 100755 index 00000000000..de443cc76ae --- /dev/null +++ b/Master/tlpkg/installer/uninstall-tl.pl @@ -0,0 +1,85 @@ +#!/usr/bin/env perl + +# $Id: uninstall-tl.pl 6381 2008-01-23 17:50:54Z preining $ +# uninstall-tl.pl +# +# Copyright 2008 Norbert Preining +# This file is licensed under the GNU General Public License version 2 +# or any later version. +# + + +my $me; + +BEGIN { + $^W = 1; + $me=$0; + $me=~s!\\!/!g if $^O=~/^MSWin(32|64)$/i; + if ($me =~ m!/!) { + $me =~ s!(.*)/.*$!$1!; + } else { + $me = '.'; + } + unshift (@INC, "$me/.."); +} + +use TeXLive::TLWinGoo; +use Cwd qw/abs_path/; +use strict; + +&main (); + +sub win32 +{ + return ($^O=~/^MSWin(32|64)$/i ? 1 : 0); +} + +sub main +{ + # get the db. + my $Master = abs_path("$me/../.."); + + # we have to + # - remove the entry of bin/arch from the PATH environment + # - (win32) remove the .texlua association + # - (win32) remove the entry of PATHEXT + # - (unix) ... the links + if (win32()) { + # remove any tex path and add an empty entry ... hope that does the + # right thing + add_texbindir_to_path(""); + unregister_script_type(".texlua"); + broadcast_env; + # now remove all the OTHER dirs (nothing done here atm) + # ... + # remove all the directories ... howto do that on windows ... + } else { + # remove the links (missings, but we do not support them in the installer + # anyway + # ... + # remove all the directories + system("rm -rf \"$Master/texmf-dist\""); + system("rm -rf \"$Master/texmf-doc\""); + system("rm -rf \"$Master/texmf-var\""); + system("rm -rf \"$Master/texmf-config\""); + system("rm -rf \"$Master/texmf\""); + system("rm -rf \"$Master/bin\""); + system("rm -rf \"$Master/tlpkg\""); + system("rm -f \"$Master/install-tl.log\""); + # now everything should be removed ... + # note that shell returns 0 on success, so we have to use "and" + system("rmdir \"$Master\"") and + warn("Couldn't completely remove $Master: $!\n"); + } +} + + +__END__ + + +### Local Variables: +### perl-indent-level: 2 +### tab-width: 2 +### indent-tabs-mode: nil +### End: +# vim:set tabstop=2 expandtab: # diff --git a/Master/tlpkg/installer/wget.exe b/Master/tlpkg/installer/wget.exe Binary files differnew file mode 100755 index 00000000000..ad974bfe5f8 --- /dev/null +++ b/Master/tlpkg/installer/wget.exe diff --git a/Master/tlpkg/installer/zlib1.dll b/Master/tlpkg/installer/zlib1.dll Binary files differnew file mode 100755 index 00000000000..076f50336d9 --- /dev/null +++ b/Master/tlpkg/installer/zlib1.dll |