diff options
author | Norbert Preining <preining@logic.at> | 2011-06-09 00:45:20 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2011-06-09 00:45:20 +0000 |
commit | 49eaa5ca78e394c8dde5fdcf1daa1e3b574e8d78 (patch) | |
tree | 047778864f93d8aa20c566adca7d268bd98eceec | |
parent | 705627efeb52a7040bed31565fa6eb90a736bea7 (diff) |
implement dump-tlpdb action for tlmgr
git-svn-id: svn://tug.org/texlive/trunk@22875 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index 9c10b06b4e5..7f16e9dfb13 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -174,6 +174,8 @@ sub main { "keyword" => 1, "characterization" => 1, "functionality" => 1 }, + "dump-tlpdb" => { "local" => 1, + "remote" => 1 }, "uninstall" => { "force" => 1 }, "update" => { "no-depends" => 1, "no-depends-at-all" => 1, @@ -506,6 +508,9 @@ sub execute_action { } elsif ($action =~ m/^conf$/i) { action_conf(); finish(0); + } elsif ($action =~ m/^dump-tlpdb$/i) { + action_dumptlpdb(); + finish(0); } elsif ($action =~ m/^show$/i) { action_show(); finish(0); @@ -1029,7 +1034,21 @@ sub action_path { return; } - +# DUMP TLPDB +# +sub action_dumptlpdb { + init_local_db(); + if ($opts{"local"}) { + $localtlpdb->writeout; + return; + } + if ($opts{"remote"}) { + init_tlmedia(); + $remotetlpdb->writeout; + } + return; +} + # SHOW # sub action_show { @@ -5725,6 +5744,28 @@ L</"TAXONOMIES"> below for details. =back +=head2 dump-tlpdb [I<options>] + +Dumps local or remote TLPDB as is to stdout. + +Options: + +=over 4 + +=item B<--local> + +Dumps the local tlpdb. + +=item B<--remote> + +Dumps the remote tlpdb. + +=back + +If both B<--local> and B<--remote> is given, only the local tlpdb is dumped +out. If none is given then nothing is dumped. + + =head2 list [--only-installed] [collections|schemes|I<pkg>...] With no argument, lists all packages available at the package |