1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-15 01:04:37 +02:00

Use an extension to denote vendorized code.

Vendorized code is copied from another project when a library is not available and a git subproject won't work. Currently all the vendorized code is copied from PostgreSQL but it makes sense to have a more general mechanism for indicating vendorized code.

The .vendor extension will be used to denote vendorized code in the same way that .auto is used to denote auto-generated code.
This commit is contained in:
David Steele
2020-05-18 19:11:26 -04:00
parent a329afd3be
commit 688ec2a8f5
11 changed files with 28 additions and 25 deletions

View File

@ -98,6 +98,12 @@ sub codeCountScan
$strClass .= '/auto';
}
# Append vendor if a vendorized file
if ($strFile =~ '\.vendor\..$')
{
$strClass .= '/vendor';
}
# Force unrecognized file types
my $strForceLang = undef;
my $strType = undef;