summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin')
-rwxr-xr-xMaster/tlpkg/bin/tlpdb2container (renamed from Master/tlpkg/bin/tlpdb2zip)10
-rwxr-xr-xMaster/tlpkg/bin/tlpsrc2zip32
2 files changed, 29 insertions, 13 deletions
diff --git a/Master/tlpkg/bin/tlpdb2zip b/Master/tlpkg/bin/tlpdb2container
index 83393e64cde..6467ec84e2d 100755
--- a/Master/tlpkg/bin/tlpdb2zip
+++ b/Master/tlpkg/bin/tlpdb2container
@@ -1,5 +1,5 @@
#!/usr/bin/env perl
-# $Id: tlpdb2zip 5188 2007-10-14 20:32:44Z karl $
+# $Id: tlpdb2container 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.
@@ -55,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($opt_type,$Master,$opt_outputdir);
+ $obj->make_container($opt_type,$Master,$opt_outputdir);
}
}
@@ -65,11 +65,11 @@ __END__
=head1 NAME
-tlpdb2zip - generate container files (zip,tar.lzma) of a package
+tlpdb2container - generate container files (zip,tar.lzma) of a package
=head1 SYNOPSIS
-tlpdb2zip [OPTION]...
+tlpdb2container [OPTION]...
=head1 OPTIONS
@@ -97,7 +97,7 @@ 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
+B<tlpdb2container> generates container files from a TeX Live Database and the
respective installation.
=head1 AUTHORS AND COPYRIGHT
diff --git a/Master/tlpkg/bin/tlpsrc2zip b/Master/tlpkg/bin/tlpsrc2zip
index 50d4f715088..51f5f3400bf 100755
--- a/Master/tlpkg/bin/tlpsrc2zip
+++ b/Master/tlpkg/bin/tlpsrc2zip
@@ -26,6 +26,7 @@ use File::Path;
my $opt_all = 0;
chomp (my $opt_master = `cd $::mydir/../.. && pwd`);
my $opt_catalogue = "";
+my $opt_type = "zip";
my $opt_outputdir = "./zip";
our $opt_debug = 0;
my $help = 0;
@@ -35,6 +36,7 @@ GetOptions(
"master=s" => \$opt_master, # location of the tree
"catalogue=s" => \$opt_catalogue, # location of the TeX Catalogue
"outputdir=s" => \$opt_outputdir,
+ "type=s" => \$opt_type,
"debug!", "help|?" => \$help) or pod2usage(1);
pod2usage(-exitstatus => 0, -verbose => 2) if $help;
@@ -96,7 +98,7 @@ sub main
$tlp->update_from_catalogue ($tlc);
}
- $tlp->make_zip($opt_master,$opt_outputdir);
+ $tlp->make_container($opt_type,$opt_master,$opt_outputdir);
}
warn "\n";
@@ -111,7 +113,7 @@ tlpsrc2zip - create zip file(s) from tlpsrc files
=head1 SYNOPSIS
-tlpsrc2zip [OPTION]... [TLPSRC]...
+tlpsrc2container [OPTION]... [TLPSRC]...
=head1 OPTIONS
@@ -120,29 +122,41 @@ tlpsrc2zip [OPTION]... [TLPSRC]...
=item B<-all>
Generate zip files for all .tlpsrc files in C<Master/tlpkg/tlpsrc/*.tlpsrc>.
+=item B<-outputdir> I<outputdir>
+The location where created container files are placed, defaults to ./zip.
+
=item B<-master> I<Master_dir>
The location given by B<-master> must point to a valid svn repository
of TeX Live Master direcory. Defaults to C<../..> of C<$0>.
-=item B<-outputdir> I<output_dir>
-Specifies the location where zip files are created. Defaults to C<./zip>.
+=item B<-catalogue> I<Catalogue_dir>
+The location given by B<-catalogue> must point to a valid TeX Catalogue.
+No default value. If given, the included tlpobj files will contain information
+gathered from the TeX Catalogue.
+
+=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
-B<tlpsrc2zip> converts TeX Live Package Source files (tlpsrc) into zip
-files containing all the files in the package.
+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<tlpsrc2container> converts TeX Live Package Source files (tlpsrc) into
+container files containing all the files in the package.
If a TeX Catalogue hierarchy is specified, additional information from
the catalogue are merged into the database (see L<TeXLive::TLPOBJ> for
the list of included information from the TeX Catalogue).
-Note that a copy of the created TeX Live Package Object file (.tlpobj)
-is always included in the zip file in .tlpobj/NAME.tlpobj.
=head1 AUTHORS AND COPYRIGHT
@@ -150,6 +164,8 @@ 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.
+=back
+
=cut
### Local Variables: