aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2013-01-31 15:03:24 +0100
committerMagnus Hagander <magnus@hagander.net>2013-01-31 15:06:45 +0100
commitbfb8a8d3818972faf1976eccedddfaee7eb0f613 (patch)
treeacf8c9c8b91866bd169551e4068a494831422020 /src
parent6a651d85eb6b2df7cbcbdf4b2f82a1660e691d12 (diff)
downloadpostgresql-bfb8a8d3818972faf1976eccedddfaee7eb0f613.tar.gz
postgresql-bfb8a8d3818972faf1976eccedddfaee7eb0f613.zip
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
Diffstat (limited to 'src')
-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 6f359bfdbcb..0a47e40942f 100644
--- a/src/tools/msvc/Project.pm
+++ b/src/tools/msvc/Project.pm
@@ -308,7 +308,7 @@ sub AddResourceFile
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'))
{