Fix version_stamp.pl to allow 'alphaN' version stamps. Not sure how

Peter did that without fixing this ...
This commit is contained in:
Tom Lane 2009-08-19 15:03:56 +00:00
parent c9ebd16dfa
commit e59686f029

View File

@ -5,7 +5,7 @@
#
# Copyright (c) 2008-2009, PostgreSQL Global Development Group
#
# $PostgreSQL: pgsql/src/tools/version_stamp.pl,v 1.3 2009/07/01 23:15:55 tgl Exp $
# $PostgreSQL: pgsql/src/tools/version_stamp.pl,v 1.4 2009/08/19 15:03:56 tgl Exp $
#################################################################
#
@ -17,7 +17,7 @@
# Usage: cd to top of source tree and issue
# src/tools/version_stamp.pl MINORVERSION
# where MINORVERSION can be a minor release number (0, 1, etc), or
# "devel", "betaN", "rcN".
# "devel", "alphaN", "betaN", "rcN".
#
# Major version is hard-wired into the script. We update it when we branch
@ -35,6 +35,9 @@ if ($minor =~ m/^\d+$/) {
} elsif ($minor eq "devel") {
$dotneeded = 0;
$numericminor = 0;
} elsif ($minor =~ m/^alpha\d+$/) {
$dotneeded = 0;
$numericminor = 0;
} elsif ($minor =~ m/^beta\d+$/) {
$dotneeded = 0;
$numericminor = 0;
@ -42,7 +45,7 @@ if ($minor =~ m/^\d+$/) {
$dotneeded = 0;
$numericminor = 0;
} else {
die "$0: minor-version must be N, devel, betaN, or rcN\n";
die "$0: minor-version must be N, devel, alphaN, betaN, or rcN\n";
}
# Create various required forms of the version number