8000 Properly zero-pad the day-of-year part of the win32 build number · home201448/postgres@186a0c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 186a0c9

Browse files
committed
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
1 parent 66e6916 commit 186a0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/msvc/Project.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ sub AddResourceFile
300300
my ($self, $dir, $desc, $ico) = @_;
301301

302302
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
303-
my $d = ($year - 100) . "$yday";
303+
my $d = sprintf("%02d%03d", ($year - 100), $yday);
304304

305305
if (Solution::IsNewer("$dir\\win32ver.rc",'src\port\win32ver.rc'))
306306
{

0 commit comments

Comments
 (0)
0