Commit e59686f0 authored by Tom Lane's avatar Tom Lane

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

Peter did that without fixing this ...
parent c9ebd16d
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# #
# Copyright (c) 2008-2009, PostgreSQL Global Development Group # 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 @@ ...@@ -17,7 +17,7 @@
# Usage: cd to top of source tree and issue # Usage: cd to top of source tree and issue
# src/tools/version_stamp.pl MINORVERSION # src/tools/version_stamp.pl MINORVERSION
# where MINORVERSION can be a minor release number (0, 1, etc), or # 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 # Major version is hard-wired into the script. We update it when we branch
...@@ -35,6 +35,9 @@ if ($minor =~ m/^\d+$/) { ...@@ -35,6 +35,9 @@ if ($minor =~ m/^\d+$/) {
} elsif ($minor eq "devel") { } elsif ($minor eq "devel") {
$dotneeded = 0; $dotneeded = 0;
$numericminor = 0; $numericminor = 0;
} elsif ($minor =~ m/^alpha\d+$/) {
$dotneeded = 0;
$numericminor = 0;
} elsif ($minor =~ m/^beta\d+$/) { } elsif ($minor =~ m/^beta\d+$/) {
$dotneeded = 0; $dotneeded = 0;
$numericminor = 0; $numericminor = 0;
...@@ -42,7 +45,7 @@ if ($minor =~ m/^\d+$/) { ...@@ -42,7 +45,7 @@ if ($minor =~ m/^\d+$/) {
$dotneeded = 0; $dotneeded = 0;
$numericminor = 0; $numericminor = 0;
} else { } 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 # Create various required forms of the version number
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment