From c865de9fedd68c738257b01e6c5f33fa4c387eb0 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Mon, 21 Aug 2006 12:02:49 +0000 Subject: - fix version to please CPAN --- lib/MDV/Distribconf/MediaCFG.pm | 43 +++++++++++++++++++++++++++++++++++++++-- 1 file 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 for more detail about it +See L =cut @@ -182,3 +218,6 @@ sub _value_info { } 1; + +__END__ + -- cgit v1.2.1