mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Stamp HEAD as 10devel.
This is a good bit more complicated than the average new-version stamping commit, because it includes various adjustments in pursuit of changing from three-part to two-part version numbers. It's likely some further work will be needed around that change; but this is enough to get through the regression tests, at least in Unix builds. Peter Eisentraut and Tom Lane
This commit is contained in:
@ -131,12 +131,12 @@ sub GenerateFiles
|
||||
if (/^AC_INIT\(\[PostgreSQL\], \[([^\]]+)\]/)
|
||||
{
|
||||
$self->{strver} = $1;
|
||||
if ($self->{strver} !~ /^(\d+)\.(\d+)(?:\.(\d+))?/)
|
||||
if ($self->{strver} !~ /^(\d+)(?:\.(\d+))?/)
|
||||
{
|
||||
confess "Bad format of version: $self->{strver}\n";
|
||||
}
|
||||
$self->{numver} = sprintf("%d%02d%02d", $1, $2, $3 ? $3 : 0);
|
||||
$self->{majorver} = sprintf("%d.%d", $1, $2);
|
||||
$self->{numver} = sprintf("%d%04d", $1, $2 ? $2 : 0);
|
||||
$self->{majorver} = sprintf("%d", $1);
|
||||
}
|
||||
}
|
||||
close(C);
|
||||
|
Reference in New Issue
Block a user