1
0
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:
David Steele
2021-02-10 15:54:37 -05:00
parent 6a717e032f
commit 920c746adb

View File

@@ -548,8 +548,11 @@ eval
trim($strConfigure) . "\n\n# Generated from src/build/configure.ac sha1 ${strConfigureAcHash}\n"; trim($strConfigure) . "\n\n# Generated from src/build/configure.ac sha1 ${strConfigureAcHash}\n";
# Remove unused options from help # Remove unused options from help
$strConfigure =~ s/^ --((?!bin).)*dir=DIR.*\n//mg; my $strDirList =
$strConfigure =~ s/^ --sbindir=DIR.*\n//mg; "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 # Save into the src dir
$oStorageBackRest->put( $oStorageBackRest->put(