summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2022-09-26 18:38:02 +0000
committerAndres Freund2022-09-26 18:38:02 +0000
commit31d2c4716e6b429353bb81cebaa0f2b1267823d6 (patch)
tree205a17aaacca75191a1f3223f69226d1fa3f745e
parentfbd2bd15b0114bb900aa6986add2b359fec1b740 (diff)
windows: remove date from version number in win32ver.rc
This may have served a purpose at some point, but these days it just contributes to a non-reproducible build. Reviewed-by: Peter Eisentraut <[email protected]> Discussion: https://postgr.es/m/[email protected] Discussion: https://postgr.es/m/[email protected]
-rw-r--r--src/makefiles/Makefile.win321
-rw-r--r--src/tools/msvc/Project.pm5
2 files changed, 0 insertions, 6 deletions
diff --git a/src/makefiles/Makefile.win32 b/src/makefiles/Makefile.win32
index 17d6819644..d268b3ebaf 100644
--- a/src/makefiles/Makefile.win32
+++ b/src/makefiles/Makefile.win32
@@ -69,7 +69,6 @@ win32ver.rc: $(top_srcdir)/src/port/win32ver.rc
sed -e 's;FILEDESC;$(PGFILEDESC);' \
-e 's;VFT_APP;$(PGFTYPE);' \
-e 's;_ICO_;$(PGICOSTR);' \
- -e 's;\(VERSION.*\),0 *$$;\1,'`date '+%y%j' | sed 's/^0*//'`';' \
-e '/_INTERNAL_NAME_/$(if $(shlib),s;_INTERNAL_NAME_;"$(basename $(shlib))";,d)' \
-e '/_ORIGINAL_NAME_/$(if $(shlib),s;_ORIGINAL_NAME_;"$(shlib)";,d)' \
$< >$@
diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm
index b24a2a9815..ec449c864c 100644
--- a/src/tools/msvc/Project.pm
+++ b/src/tools/msvc/Project.pm
@@ -367,10 +367,6 @@ sub AddResourceFile
{
my ($self, $dir, $desc, $ico) = @_;
- my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) =
- localtime(time);
- my $d = sprintf("%02d%03d", ($year - 100), $yday);
-
if (Solution::IsNewer("$dir/win32ver.rc", 'src/port/win32ver.rc'))
{
print "Generating win32ver.rc for $dir\n";
@@ -383,7 +379,6 @@ sub AddResourceFile
{
s/FILEDESC/"$desc"/gm;
s/_ICO_/$icostr/gm;
- s/(VERSION.*),0/$1,$d/;
if ($self->{type} eq "dll")
{
s/VFT_APP/VFT_DLL/gm;