mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Remove libpq.rc, use win32ver.rc for libpq
For historical reasons, libpq used a separate libpq.rc file for the Windows builds while all other components use a common file win32ver.rc. With a bit of tweaking, the libpq build can also use the win32ver.rc file. This removes a bit of duplicative code. Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/ad505e61-a923-e114-9f38-9867d161073f@2ndquadrant.com
This commit is contained in:
@ -668,27 +668,6 @@ sub GenerateFiles
|
||||
);
|
||||
}
|
||||
|
||||
if (IsNewer(
|
||||
'src/interfaces/libpq/libpq.rc',
|
||||
'src/interfaces/libpq/libpq.rc.in'))
|
||||
{
|
||||
print "Generating libpq.rc...\n";
|
||||
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) =
|
||||
localtime(time);
|
||||
my $d = ($year - 100) . "$yday";
|
||||
open(my $i, '<', 'src/interfaces/libpq/libpq.rc.in')
|
||||
|| confess "Could not open libpq.rc.in";
|
||||
open(my $o, '>', 'src/interfaces/libpq/libpq.rc')
|
||||
|| confess "Could not open libpq.rc";
|
||||
while (<$i>)
|
||||
{
|
||||
s/(VERSION.*),0/$1,$d/;
|
||||
print $o $_;
|
||||
}
|
||||
close($i);
|
||||
close($o);
|
||||
}
|
||||
|
||||
if (IsNewer('src/bin/psql/sql_help.h', 'src/bin/psql/create_help.pl'))
|
||||
{
|
||||
print "Generating sql_help.h...\n";
|
||||
|
Reference in New Issue
Block a user