diff options
author | Norbert Preining <preining@logic.at> | 2007-12-14 16:51:01 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-12-14 16:51:01 +0000 |
commit | 0ecdd9cea204ea44eadaa17be9b3a1cd3b82e8c9 (patch) | |
tree | edfd863b6d419a3716acadb3f8e79d70b1ebaefc /Master/tlpkg/bin | |
parent | a4822a7fccb9ceb2b1836b2cd523da854062d115 (diff) |
implement src splitting in the installer by splitting the packages
into normal plus package.SOURCES
git-svn-id: svn://tug.org/texlive/trunk@5782 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin')
-rwxr-xr-x | Master/tlpkg/bin/tlpsrc2tlpdb | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/Master/tlpkg/bin/tlpsrc2tlpdb b/Master/tlpkg/bin/tlpsrc2tlpdb index 233bf72e9bb..41a1898d15b 100755 --- a/Master/tlpkg/bin/tlpsrc2tlpdb +++ b/Master/tlpkg/bin/tlpsrc2tlpdb @@ -28,13 +28,15 @@ my $opt_catalogue = ""; chomp (my $opt_master = `cd $::mydir/../.. && pwd`); our $opt_debug = 0; my $help = 0; -my $opt_nosplit = 0; +my $opt_nobinsplit = 0; +my $opt_nosrcsplit = 0; GetOptions( "all!" => \$opt_all, "master=s" => \$opt_master, # location of the TL tree "catalogue=s" => \$opt_catalogue, # location of the TeX Catalogue - "nosplit!" => \$opt_nosplit, + "no-bin-split!" => \$opt_nobinsplit, + "no-src-split!" => \$opt_nosrcsplit, "debug!", "help|?" => \$help) or pod2usage(1); pod2usage(-exitstatus => 0, -verbose => 2) if $help; @@ -90,13 +92,21 @@ sub main $tlp->update_from_catalogue ($tlc); } - # split bin packages - if (not($opt_nosplit)) { + # split bin packages off + if (not($opt_nobinsplit)) { my @binobjs = $tlp->split_bin_package; foreach (@binobjs) { $tldb->add_tlpobj($_); } } + # split src packages off + if (not($opt_nosrcsplit)) { + my $srcobj = $tlp->split_src_package; + if (defined($srcobj)) { + $tldb->add_tlpobj($srcobj); + } + } + $tldb->add_tlpobj ($tlp); } warn "\n"; @@ -141,7 +151,10 @@ gathered from the TeX Catalogue. The location given by B<-master> must point to a valid svn repository of TeX Live's Master direcory. Defaults to C<../..> of C<$0>. -=item B<-nosplit> +=item B<-no-src-split> +Do NOT split source packages off. + +=item B<-no-bin-split> Do NOT split files with binaries into several packages, one for the arch independent and one for each of the architectures with only the respective binaries. |