#
# uprev-spec - increments by 1 the value of the Release field in spec files
#
# Dermot McCluskey 22-July-2003 Initial Version
use strict;
use warnings;
my $exit_val = 0;
my $verbose = 1;
my $build = "";
my @spec_files = ();
&main ();
exit $exit_val;
{
}
sub set_quiet
{
$verbose = 0;
}
{
push @spec_files, shift;
}
sub process_options
{
}
{
print << "EOF";
specs...
exit 0;
}
{
my $spec_file = shift;
my $spec_file_base = $spec_file;
my $temp_file;
my $found = 0;
my $out;
# if spec_file contains a leading dir, then split it out
$spec_file_base = $1;
}
return 0;
}
return 0;
}
return 0;
}
}
return 0;
}
return 0;
}
my $label = $1;
my $rel = $2;
my $tail = $3;
my $newrel;
$found = 1;
# if Release value does not consist entirely of digits,
# then check for leading chars ending with digits
$lead = $1;
$rel = $2;
} else {
return 0;
}
}
}
next;
};
# print all other lines unmodified
print TEMPFILE $_;
}
return 0;
}
if ($?) {
return 0;
}
return 1;
}
sub main
{
return;
}
}
}