mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Add PostgreSQL home page to --help output
Per emerging standard in GNU programs and elsewhere. Autoconf already has support for specifying a home page, so we can just that. Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://www.postgresql.org/message-id/flat/8d389c5f-7fb5-8e48-9a4a-68cec44786fa%402ndquadrant.com
This commit is contained in:
@ -146,20 +146,26 @@ sub GenerateFiles
|
||||
{
|
||||
my $self = shift;
|
||||
my $bits = $self->{platform} eq 'Win32' ? 32 : 64;
|
||||
my $ac_init_found = 0;
|
||||
my $package_name;
|
||||
my $package_version;
|
||||
my $package_bugreport;
|
||||
my $package_url;
|
||||
|
||||
# Parse configure.in to get version numbers
|
||||
open(my $c, '<', "configure.in")
|
||||
|| confess("Could not open configure.in for reading\n");
|
||||
while (<$c>)
|
||||
{
|
||||
if (/^AC_INIT\(\[([^\]]+)\], \[([^\]]+)\], \[([^\]]+)\]/)
|
||||
if (/^AC_INIT\(\[([^\]]+)\], \[([^\]]+)\], \[([^\]]+)\], \[([^\]]*)\], \[([^\]]+)\]/)
|
||||
{
|
||||
$ac_init_found = 1;
|
||||
|
||||
$package_name = $1;
|
||||
$package_version = $2;
|
||||
$package_bugreport = $3;
|
||||
#$package_tarname = $4;
|
||||
$package_url = $5;
|
||||
|
||||
if ($package_version !~ /^(\d+)(?:\.(\d+))?/)
|
||||
{
|
||||
@ -171,10 +177,7 @@ sub GenerateFiles
|
||||
}
|
||||
close($c);
|
||||
confess "Unable to parse configure.in for all variables!"
|
||||
if ( $package_name eq ''
|
||||
|| $package_version eq ''
|
||||
|| $self->{numver} eq ''
|
||||
|| $package_bugreport eq '');
|
||||
unless $ac_init_found;
|
||||
|
||||
if (IsNewer("src/include/pg_config_os.h", "src/include/port/win32.h"))
|
||||
{
|
||||
@ -431,7 +434,7 @@ sub GenerateFiles
|
||||
PACKAGE_NAME => qq{"$package_name"},
|
||||
PACKAGE_STRING => qq{"$package_name $package_version"},
|
||||
PACKAGE_TARNAME => lc qq{"$package_name"},
|
||||
PACKAGE_URL => undef,
|
||||
PACKAGE_URL => qq{"$package_url"},
|
||||
PACKAGE_VERSION => qq{"$package_version"},
|
||||
PG_INT128_TYPE => undef,
|
||||
PG_INT64_TYPE => 'long long int',
|
||||
|
Reference in New Issue
Block a user