diff options
author | Norbert Preining <preining@logic.at> | 2007-11-12 14:44:58 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-11-12 14:44:58 +0000 |
commit | 24fb5db2efc662750c66a574ff7d4f26da25b5cb (patch) | |
tree | 18ee14d83c12c4fa907eaab5e7d492310b7e0d65 /Master/tlpkg/bin | |
parent | e3a55203b187442b52adda96ed2daf039a5fe9fc (diff) |
- allow the generation of tar.lzma files
- specify the location of the infra stuff in TLConfig.pm
git-svn-id: svn://tug.org/texlive/trunk@5409 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin')
-rwxr-xr-x | Master/tlpkg/bin/tlpdb2zip | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/Master/tlpkg/bin/tlpdb2zip b/Master/tlpkg/bin/tlpdb2zip index e22921d9f01..83393e64cde 100755 --- a/Master/tlpkg/bin/tlpdb2zip +++ b/Master/tlpkg/bin/tlpdb2zip @@ -24,12 +24,14 @@ use File::Path; my $opt_all = 0; our $mydir; our $opt_debug = 0; +my $opt_type = "zip"; my $opt_outputdir = "./zip"; my $help = 0; GetOptions("outputdir=s" => \$opt_outputdir, "all!" => \$opt_all, "debug!" => \$opt_debug, + "type=s" => \$opt_type, "help|?" => \$help) or pod2usage(1); pod2usage(-exitstatus => 0, -verbose => 2) if $help; @@ -53,7 +55,7 @@ sub main for my $pkg (@packs) { my $obj = $tlpdb->get_package ($pkg); die "$0: no TeX Live package named $pkg in $tlpdb_path.\n" if ! $obj; - $obj->make_zip($Master,$opt_outputdir); + $obj->make_zip($opt_type,$Master,$opt_outputdir); } } @@ -63,7 +65,7 @@ __END__ =head1 NAME -tlpdb2zip - generate zip files from an installation +tlpdb2zip - generate container files (zip,tar.lzma) of a package =head1 SYNOPSIS @@ -71,11 +73,32 @@ tlpdb2zip [OPTION]... =head1 OPTIONS -The standard options C<-help> and C<-debug> are accepted. +=over 8 + +=item B<-all> +build container file for all packages present in the tlpdb. + +=item B<-outputdir> I<outputdir> +The location where created container files are placed, defaults to ./zip. + +=item B<-type> I<zip|lzma> +Specifies the type of container to be used. C<zip> generates zip files, +while C<lzma> generates .tar.lzma files. + +=back + +The standard options C<-help> and C<-debug> are also accepted. See the tlpfiles documentation for details. + =head1 DESCRIPTION +To distribute packages over the network and on installation media the +packages are wrapped into container files. These container are either +simple zip files or tar.lzma file containing all the files of the package. + +B<tlpdb2zip> generates container files from a TeX Live Database and the +respective installation. =head1 AUTHORS AND COPYRIGHT |