Allow for filtering out build phases in the rc-file.

This needs much better documentation but I wanted to get it in the
repository to allow for it to be tested.
wilder
Michael Pyne 13 years ago
parent 1dd4a6baba
commit 005db0400a
  1. 8
      kdesrc-build
  2. 1
      modules/ksb/BuildContext.pm

@ -614,6 +614,13 @@ EOF
error (" r[b[*] module b[$module] (near line $.) should be declared as module-set to use b[$option]");
die make_exception('Config', "Option $option can only be used in module-set");
}
elsif ($option eq 'filter-out-phases') {
for my $phase (split(' ', $value)) {
$module->phases()->filterOutPhase($phase);
}
next; # Don't fallthrough to set the option
}
$module->setOption($option, $value);
}
@ -938,6 +945,7 @@ sub expandXMLModules
$_ = ksb::Module->new($ctx, $result->{'name'});
$_->setScmType('git');
$_->cloneOptionsFrom($moduleSet);
$_->phases()->phases($moduleSet->phases()->phases()); # Copy phases over
$_->setModuleSet($moduleSet->moduleSet());
$_->setOption('repository', $repo);
$_->setOption('#xml-full-path', $result->{'fullName'});

@ -58,6 +58,7 @@ my %defaultGlobalOptions = (
"dest-dir" => '${MODULE}', # single quotes used on purpose!
"disable-agent-check" => 0, # If true we don't check on ssh-agent
"do-not-compile" => "",
"filter-out-phases" => '',
"git-desired-protocol" => 'git', # protocol to grab from kde-projects
"git-repository-base" => {}, # Base path template for use multiple times.
"http-proxy" => '', # Proxy server to use for HTTP.

Loading…
Cancel
Save