Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpkg::buildoptions(3) [linux man page]

Dpkg::BuildOptions(3)						   libdpkg-perl 					     Dpkg::BuildOptions(3)

NAME
Dpkg::BuildOptions - parse and update build options DESCRIPTION
The Dpkg::BuildOptions object can be used to manipulate options stored in the DEB_BUILD_OPTIONS environment variable. FUNCTIONS
my $bo = Dpkg::BuildOptions->new() Create a new Dpkg::BuildOptions object. It will be initialized based on the value of the DEB_BUILD_OPTIONS environment variable. $bo->reset() Reset the object to not have any option (it's empty). $bo->merge($content, $source) Merge the options set in $content and record that they come from the source $source. $source is mainly used in warning messages currently to indicate where invalid options have been detected. $content is a space separated list of options with optional assigned values like "nocheck parallel=2". $bo->set($option, $value, [$source]) Store the given option in the objet with the given value. It's legitimate for a value to be undefined if the option is a simple boolean (its presence means true, its absence means false). The $source is optional and indicates where the option comes from. The known options have their values checked for sanity. Options without values have their value removed and options with invalid values are discarded. $bo->get($option) Return the value associated to the option. It might be undef even if the option exists. You might want to check with $bo->has($option) to verify if the option is stored in the object. $bo->has($option) Returns a boolean indicating whether the option is stored in the object. $string = $bo->output($fh) Return a string representation of the build options suitable to be assigned to an environment variable. Can optionnaly output that string to the given filehandle. $bo->export([$var]) Export the build options to the given environment variable. If omitted, DEB_BUILD_OPTIONS is assumed. The value set to the variable is also returned. AUTHOR
Raphael Hertzog <hertzog@debian.org> 1.16.0.3 2012-04-17 Dpkg::BuildOptions(3)

Check Out this Related Man Page

Dpkg::Conf(3)							   libdpkg-perl 						     Dpkg::Conf(3)

NAME
Dpkg::Conf - parse dpkg configuration files DESCRIPTION
The Dpkg::Conf object can be used to read options from a configuration file. It can exports an array that can then be parsed exactly like @ARGV. FUNCTIONS
my $conf = Dpkg::Conf->new(%opts) Create a new Dpkg::Conf object. Some options can be set through %opts: if allow_short evaluates to true (it defaults to false), then short options are allowed in the configuration file, they should be prepended with a single dash. @$conf @options = $conf->get_options() Returns the list of options that can be parsed like @ARGV. $conf->load($file) Read options from a file. Return the number of options parsed. $conf->parse($fh) Parse options from a file handle. Return the number of options parsed. $conf->filter(remove => $rmfunc) $conf->filter(keep => $keepfunc) Filter the list of options, either removing or keeping all those that return true when &$rmfunc($option) or &keepfunc($option) is called. $string = $conf->output($fh) Write the options in the given filehandle (if defined) and return a string representation of the content (that would be) written. "$conf" Return a string representation of the content. $conf->save($file) Save the options in a file. AUTHOR
Raphael Hertzog <hertzog@debian.org>. 1.16.0.3 2012-04-17 Dpkg::Conf(3)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to assign the content of a file to a variable?

Hi all, I have a problem here. I have a file and let we take the content of the file is just '32' (only a numeric value in that file). Now I need to assign this numeric value ( value in that file) to a variable. Is that possible? If so, can you plz advice me on this? Thanks in... (4 Replies)
Discussion started by: iamgeethuj
4 Replies

2. Shell Programming and Scripting

addressing variable content...

I want to address a variable content whose name is/matches the content of a given other variable. i.e. set name=´sam´ set ${name}_age=´27´ So, by typing: echo ${name}_age I correctly obtain: sam_age By typing: echo $sam_age or echo ${sam_age} I correctly obtain: 27 But how can I... (3 Replies)
Discussion started by: sobolev
3 Replies

3. Programming

What does it means?

#define abc '\xE8' (7 Replies)
Discussion started by: kamlesh33
7 Replies

4. Shell Programming and Scripting

Extract a part of variable/line content in a file

I have a variable and assigned the following values ***XYZ_201519_20150929140642_20150929140644_211_0_0_211 I need to read this variable from backward and stop read when I get first underscore (_) In this scenario I should get 211 Thanks Kris (3 Replies)
Discussion started by: mkris
3 Replies