summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-06-09 19:01:28 +0000
committerNorbert Preining <preining@logic.at>2009-06-09 19:01:28 +0000
commitcb518f00d6f555ef49f18b12c7c8dcb2576d2956 (patch)
tree2c042c83d3bd899f752810fb0ca48da788485671 /Master/tlpkg/TeXLive
parentd6c1b1aca9daa4545cfd8b0a28c99f0d3ed47a4f (diff)
update all depending formats if an engine has been updated
git-svn-id: svn://tug.org/texlive/trunk@13683 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r--Master/tlpkg/TeXLive/TLPDB.pm19
-rw-r--r--Master/tlpkg/TeXLive/TLPOBJ.pm20
2 files changed, 39 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLPDB.pm b/Master/tlpkg/TeXLive/TLPDB.pm
index 9e245dcf71b..b826db38e73 100644
--- a/Master/tlpkg/TeXLive/TLPDB.pm
+++ b/Master/tlpkg/TeXLive/TLPDB.pm
@@ -1275,6 +1275,25 @@ sub option_platform {
=pod
+=item C<< $tlpdb->format_definitions >>
+
+This function returns a list of references to hashes where each hash
+represents a parsed AddFormat line.
+
+
+=cut
+
+sub format_definitions {
+ my $self = shift;
+ my @ret;
+ foreach my $p ($self->list_packages) {
+ my $obj = $self->get_package ($p);
+ die "$0: No TeX Live package named $p, strange" if ! $obj;
+ push @ret, $obj->format_definitions;
+ }
+ return(@ret);
+}
+
=item C<< $tlpdb->fmtutil_cnf_lines >>
The function C<fmtutil_cnf_lines> returns the list of a fmtutil.cnf file
diff --git a/Master/tlpkg/TeXLive/TLPOBJ.pm b/Master/tlpkg/TeXLive/TLPOBJ.pm
index 10db4ff062a..80ba30d23d9 100644
--- a/Master/tlpkg/TeXLive/TLPOBJ.pm
+++ b/Master/tlpkg/TeXLive/TLPOBJ.pm
@@ -893,6 +893,21 @@ sub allbinfiles {
return @ret;
}
+sub format_definitions {
+ my $self = shift;
+ my @ret;
+ for my $e ($self->executes) {
+ if ($e =~ m/AddFormat\s+(.*)\s*/) {
+ my %r = TeXLive::TLUtils::parse_AddFormat_line("$1");
+ if (defined($r{"error"})) {
+ die "$r{'error'}, package $pkg, execute $e";
+ }
+ push @ret, \%r;
+ }
+ }
+ return @ret;
+}
+
#
# execute stuff
#
@@ -1529,6 +1544,11 @@ returns a list of all files of all types.
returns a list of all binary files.
+=item C<< $tlpobj->format_definitions >>
+
+The function C<format_definitions> returns a list of references to hashes
+where each hash is a format definition.
+
=item C<< $tlpobj->fmtutil_cnf_lines >>
The function C<fmtutil_cnf_lines> returns the lines for fmtutil.cnf