}
}
- if ($line =~ /^Release:/i) {
+ if ($line =~ /^Release:(.*)\s*$/i) {
+ my $spec_rel = $1; # User-provided value
my $oldl = $line;
if (defined $release) {
+ $line =~ s/<SPEC_REL>/$spec_rel/;
if (!($line =~ s/<RELEASE\d*>/$release/g)) {
if ($line =~ /<(?:CI_CNT|B_CNT)>/) {
# XXX: should pass ci_cnt/b_cnt instead
$line =~ s/<RELEASE\d*>/0/;
$line =~ s/<CI_CNT>/0/;
$line =~ s/<B_CNT>/0/;
+ $line =~ s/<SPEC_REL>/0/;
}
# this is to be compatible to legacy autobuild.
# you can specify a releaseprg in the project configuration,