postgres.git / summary / log / commit / refs

commit    d1bdb35a989f1b45962c7a83372e00a71c8e6b49
Author:   Magnus Hagander <magnus@hagander.net>
Date:     Thu Jan 31 14:08:05 2013 +0000
First released in: 9.3.0, 8.3.23, 8.4.16, 9.0.12, 9.1.8, 9.2.3

    Properly zero-pad the day-of-year part of the win32 build number
    
    This ensure the version number increases over time. The first three digits
    in the version number is still set to the actual PostgreSQL version
    number, but the last one is intended to be an ever increasing build number,
    which previosly failed when it changed between 1, 2 and 3 digits long values.
    
    Noted by Deepak


src/tools/msvc/Project.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index 6875692b57a..afeeef0208b 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -303,7 +303,7 @@ sub AddResourceFile my ($self, $dir, $desc, $ico) = @_; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); - my $d = ($year - 100) . "$yday"; + my $d = sprintf("%02d%03d", ($year - 100), $yday); if (Solution::IsNewer("$dir\\win32ver.rc",'src\port\win32ver.rc')) { [parent: b3e715a035da]