Re: strict version of version_stamp.pl

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Fetter <david@fetter.org>
Cc: Bruce Momjian <bruce@momjian.us>, Andrew Dunstan <andrew@dunslane.net>, jd@commandprompt.com, pgsql-hackers@postgresql.org
Date: 2010-02-25T23:59:50Z
Lists: pgsql-hackers
David Fetter <david@fetter.org> writes:
> -} 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;
> -} elsif ($minor =~ m/^rc\d+$/) {
> +} elsif ($minor =~ m/
> +    ^
> +    (
> +        devel |
> +        alpha\d+ |
> +        beta\d+ |
> +        rc\d+
> +    )
> +    $/x) {

FWIW, I don't care for the above part of the patch.  It doesn't seem to
me to improve readability one iota, if anything the reverse; and it
makes the logic less amenable to modification.  If we wanted to make the
behavior at all different for alpha/beta/rc cases, we'd have to undo it
anyway.

			regards, tom lane