You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 08:49:29 +02:00
Better exclusions for configure help.
Exclude known unused options rather than trying to include used options. This works better when new options are added.
This commit is contained in:
@@ -548,8 +548,11 @@ eval
|
||||
trim($strConfigure) . "\n\n# Generated from src/build/configure.ac sha1 ${strConfigureAcHash}\n";
|
||||
|
||||
# Remove unused options from help
|
||||
$strConfigure =~ s/^ --((?!bin).)*dir=DIR.*\n//mg;
|
||||
$strConfigure =~ s/^ --sbindir=DIR.*\n//mg;
|
||||
my $strDirList =
|
||||
"sbin|libexec|sysconf|sharedstate|localstate|runstate|lib|include|oldinclude|dataroot|data|info" .
|
||||
"|locale|man|doc|html|dvi|pdf|ps";
|
||||
|
||||
$strConfigure =~ s/^ --(${strDirList})*dir=DIR.*\n//mg;
|
||||
|
||||
# Save into the src dir
|
||||
$oStorageBackRest->put(
|
||||
|
||||
Reference in New Issue
Block a user