diff options
author | Magnus Hagander | 2013-01-31 14:08:05 +0000 |
---|---|---|
committer | Magnus Hagander | 2013-01-31 14:09:25 +0000 |
commit | 186a0c9492ee904e639f801a1566298cc56b31fc (patch) | |
tree | 5d0072cbd3816de1967e414d2b850329809136a0 | |
parent | 66e6916b936b57b4a6f6bf8a2bafcde4a2d36878 (diff) |
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
-rw-r--r-- | src/tools/msvc/Project.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index f2e3f5fdb9..fc9cfa14b0 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -300,7 +300,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')) { |