diff options
Diffstat (limited to 'lib/MDV/Distribconf')
-rw-r--r-- | lib/MDV/Distribconf/MediaCFG.pm | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/lib/MDV/Distribconf/MediaCFG.pm b/lib/MDV/Distribconf/MediaCFG.pm index 47d1dff..1f7383a 100644 --- a/lib/MDV/Distribconf/MediaCFG.pm +++ b/lib/MDV/Distribconf/MediaCFG.pm @@ -2,8 +2,11 @@ package MDV::Distribconf::MediaCFG; use strict; use warnings; +use MDV::Distribconf; -our $VERSION = (qq$Revision$ =~ /(\d+)/)[0]; +our $VERSION = + (qq$Revision$ =~ /(\d+)/)[0] . '.' . + MDV::Distribconf::mymediacfg_version(); =head1 NAME @@ -13,6 +16,39 @@ MDV::Distribconf::MediaCFG This module provide documenation of know value in media.cfg +=head1 MEDIACFG VERSION + +The media.cfg version is given by the 'mediacfg_version' in 'media_info'. +This value should be set is you want to use new features that can change the +behavior of this module. + +=head2 1 + +This is the default and the first version of mediacfg format. + +=head2 2 + +Since this version, all media path are relative to the media_info path. +Before, media was relative to media_info except media with / relative to +the root of the distrib. + +=head2 3 + +This version allow to include in value variable in form of refering to +other value set in the file: + +=over 4 + +=item ${...} + +refer to a global value (distribution version, arch...) + +=item %{...} + +refer to a value proper to the media (name, ...) + +=back + =head1 VALUE =cut @@ -39,7 +75,7 @@ $value->{mediacfg_version} = { The version of the media_cfg -See L<MDV::Distribconf> for more detail about it +See L<MEDIACFG VERSION> =cut @@ -182,3 +218,6 @@ sub _value_info { } 1; + +__END__ + |