pgbackrest.git / summary / log / commit / refs
commit 920c746adb1f4db5850bc2e5fdfbb5e1b89d313f
Author: David Steele <david@pgmasters.net>
Date: Wed Feb 10 20:54:37 2021 +0000
Better exclusions for configure help.
Exclude known unused options rather than trying to include used options. This works better when new options are added.
test/test.pl | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/test/test.pl b/test/test.pl
index 34a8ff9f1..826ef46cb 100755
--- a/test/test.pl
+++ b/test/test.pl
@@ -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(
[parent: 6a717e032f13]