NAME
MDV::Distribconf::Build - Subclass to MDV::Distribconf to build configuration
METHODS
- MDV::Distribconf::Build->new($root_of_distrib)
-
Returns a new MDV::Distribconf::Build object.
- $distrib->setvalue($media, $var, $val)
-
Sets or adds $var parameter from $media to $val. If $media doesn't exist, it is implicitly created. If $var is
undef
, a new media is created with no defined parameters. - $distrib->delvalue($media, $var)
-
Delete $var parameter from $media. If $var is not specified, the media is is deleted. If $media is not specified, $var is remove from global settings.
- $distrib->write_hdlists($hdlists)
-
Writes the hdlists file to
$hdlists
, or if no parameter is given, in the media information directory.$hdlists
can be a file path or a file handle. Returns 1 on success, 0 on error. - $distrib->write_mediacfg($mediacfg)
-
Write the media.cfg file into the media information directory, or into the $mediacfg given as argument. $mediacfg can be a file path, or a glob reference (\*STDOUT for example).
Returns 1 on success, 0 on error.
- $distrib->write_version($version)
-
Write the VERSION file. Returns 0 on error, 1 on success.
- $distrib->check($fhout)
-
Performs basic checks on the distribution and prints to $fhout (STDERR by default) warnings and errors found. Returns the number of errors reported.