Changeset 2139 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Sep 11, 2016, 1:16:52 AM (5 years ago)
Author:
Bruno Cornec
Message:

Adding function pb_filter_var_print to enhance pb as per #148

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2134 r2139  
    441441Print the full configuration parameters as found in the various configuration files. Help to debug conf issues.
    442442Also accepts a parameter to display only this value, and a VM/VE/RM
     443
     444=item B<getvar>
     445
     446Print the full variables expanded based on the distrubution tuple. Help to debug conf issues.
     447Also accepts a parameter to display only the values for this package, and a VM/VE/RM
    443448
    444449=item B<clean>
     
    983988    pb_log(1,"Arguments to print:".Dumper(@ARGV)."\n");
    984989    pb_distro_conf_print($pbos,@ARGV);
     990} elsif ($action =~ /^getvar$/) {
     991    my $pbos = pb_distro_get_context($ENV{'PBV'});
     992    my $pkg;
     993    my @pkg;
     994    if ($#ARGV == -1) {
     995        $pkg = pb_cms_get_pkg($defpkgdir,$extpkgdir);
     996        @pkgs = @$pkg;
     997    } else {
     998        @pkgs = @ARGV;
     999    }
     1000    pb_log(1,"Packages to print:".Dumper(@pkgs)."\n");
     1001    pb_filter_var_print($pbos,@pkgs);
    9851002} elsif ($action =~ /^clean$/) {
    9861003    pb_clean();
Note: See TracChangeset for help on using the changeset viewer.