diff options
author | Norbert Preining <preining@logic.at> | 2007-10-18 05:20:00 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-10-18 05:20:00 +0000 |
commit | 13ef27983d15dfd066b507cc4c11ece10c111417 (patch) | |
tree | 0f3f1e02d8e3e4e9ccd386003f03af9a0a650739 /Master/tlpkg/TeXLive/TLConfig.pm | |
parent | fa80b1bc352f0e2c84257074f7e7f0317b4199ef (diff) |
new module TLConfig and use it
git-svn-id: svn://tug.org/texlive/trunk@5224 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLConfig.pm')
-rw-r--r-- | Master/tlpkg/TeXLive/TLConfig.pm | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLConfig.pm b/Master/tlpkg/TeXLive/TLConfig.pm new file mode 100644 index 00000000000..8edac0d3517 --- /dev/null +++ b/Master/tlpkg/TeXLive/TLConfig.pm @@ -0,0 +1,100 @@ +# $Id: TLConfig.pm 5044 2007-09-25 18:34:12Z karl $ +# TeXLive::TLConfig.pm - module exporting configuration stuff +# Copyright 2007 Norbert Preining +# This file is licensed under the GNU General Public License version 2 +# or any later version. + +package TeXLive::TLConfig; + +BEGIN { + use Exporter (); + use vars qw( @ISA @EXPORT_OK ); + @ISA = qw(Exporter); + @EXPORT_OK = qw( + @MetaCategories + @NormalCategories + @Categories + $CategoriesRegexp + $DefaultCategory + ); +} + +# Meta Categories do not ship files, but call only for other packages +our @MetaCategories = qw/Collection Scheme/; +# Normal Categories contain actial files and do not depend on other things. +our @NormalCategories = qw/Package TLCore Documentation/; + +# list of all Categories +our @Categories = (@MetaCategories, @NormalCategories); + +our $CategoriesRegexp = '(Collection|Scheme|Package|TLCore|Documentation)'; + +our $DefaultCategory = "Package"; + +1; + + +=head1 NAME + +C<TeXLive::TLConfig> -- TeX Live Configurations + +=head1 SYNOPSIS + + use TeXLive::TLConfig; + +=head1 DESCRIPTION + +The L<TeXLive::TLConfig> module contains definitions of variables +configuring all of TeX Live. + +=over 6 + +=head1 EXPORTED VARIABLES + +All of the following variables can be pulled into the callers namespace +(i.e., are declared EXPORT_OK). + +=item C<@TeXLive::TLConfig::MetaCategories> + +The list of meta categories, i.e., those categories whose packages only +depend on other packages, but don't ship any files. Currently +C<Collection> and <Scheme>. + +=item C<@TeXLive::TLConfig::NormalCategories> + +The list of normal categories, i.e., those categories whose packages do +ship files. Currently C<TLCore>, C<Documentation>, C<Package>. + +=item C<@TeXLive::TLConfig::Categories> + +The list of all categories, i.e., the union of the above. + +=item C<$TeXLive::TLConfig::CategoriesRegexp> + +A regexp matching any category. + +=item C<$TeXLive::TLConfig::DefaultCategory> + +The default category used when creating new packages. + +=back + +=head1 SEE ALSO + +The modules L<TeXLive::TLUtils>, L<TeXLive::TLPSRC>, +L<TeXLive::TLPDB>, L<TeXLive::TLTREE>, L<TeXLive::TeXCatalogue>. + +=head1 AUTHORS AND COPYRIGHT + +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. + +=cut + +### Local Variables: +### perl-indent-level: 2 +### tab-width: 2 +### indent-tabs-mode: nil +### End: +# vim:set tabstop=2 expandtab: # |