summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tlpsrc2zip
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/tlpsrc2zip')
-rwxr-xr-xMaster/tlpkg/bin/tlpsrc2zip32
1 files changed, 24 insertions, 8 deletions
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: