summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2013-01-31 14:08:05 +0000
committerMagnus Hagander2013-01-31 14:08:43 +0000
commit7c0e6cc961733189d92b593d9e1588909aae23ec (patch)
tree3bb9d1174b512232834ad29d2916184b78d5bca4
parent969dc8cce922e58fa5dd6f945678ecd531fdb6a6 (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.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm
index aa9c123da65..4f26b522505 100644
--- a/src/tools/msvc/Project.pm
+++ b/src/tools/msvc/Project.pm
@@ -306,7 +306,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'))
{