aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-26 13:23:46 +0000
committerGravatar Sadie Powell2022-01-26 15:34:17 +0000
commitd7a7f37d14fd4433309fd2d2fae26916a1b60aee (patch)
tree129ccfe97d88a850004b32eaec05c1782b3ea5d7 /make
parentReplace consolecolors with a vendored library. (diff)
Kill vendor_directory in favour of normal include paths.
Diffstat (limited to 'make')
-rw-r--r--make/directive.pm21
1 files changed, 0 insertions, 21 deletions
diff --git a/make/directive.pm b/make/directive.pm
index 44b424487..cc61203b4 100644
--- a/make/directive.pm
+++ b/make/directive.pm
@@ -33,7 +33,6 @@ use make::console;
use constant DIRECTIVE_ERROR_PIPE => $ENV{INSPIRCD_VERBOSE} ? '' : '2>/dev/null';
use constant PKG_CONFIG => $ENV{PKG_CONFIG} || 'pkg-config';
-use constant VENDOR_DIRECTORY => catdir(dirname(dirname(__FILE__)), 'vendor');
our @EXPORT = qw(
get_directives
@@ -317,26 +316,6 @@ sub __function_require_version {
return "";
}
-sub __function_vendor_directory {
- my ($file, $name) = @_;
-
- # Try to look the directory up in the environment...
- my $key = __environment 'INSPIRCD_VENDOR_', $name;
- if (defined $ENV{$key}) {
- say console_format "Found the <|GREEN $name|> vendor directory for <|GREEN ${\module_shrink $file}|> using the environment: <|BOLD $ENV{$key}|>";
- return $ENV{$key};
- }
-
- my $directory = catdir(VENDOR_DIRECTORY, $name);
- if (-d $directory) {
- say console_format "Using the default <|GREEN $name|> vendor directory for <|GREEN ${\module_shrink $file}|>: <|BOLD $directory|>";
- return $directory;
- }
-
- # We can't find it via the environment or via the filesystem so give up.
- __error $file, "unable to find the <|GREEN $name|> vendor directory for <|GREEN ${\module_shrink $file}|>!";
-}
-
sub __function_warning {
my ($file, @messages) = @_;
print_warning @messages;