summaryrefslogtreecommitdiff
path: root/make/unit-cc.pl
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-04-04 15:37:33 +0100
committerPeter Powell <petpow@saberuk.com>2016-06-27 00:35:16 +0100
commit0d7d6a9d0909f014e7557b84b2115ca6ff387bf9 (patch)
treec30ee3ee8702b6eed330921eff562fe8bc9939bc /make/unit-cc.pl
parentff53aa7282437bf5159ec8a8d8949457c25b29a4 (diff)
Pass INSPIRCD_VERBOSE through the environment to unit-cc.
Diffstat (limited to 'make/unit-cc.pl')
-rwxr-xr-xmake/unit-cc.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/make/unit-cc.pl b/make/unit-cc.pl
index aba14a0bc..a06d7b10f 100755
--- a/make/unit-cc.pl
+++ b/make/unit-cc.pl
@@ -36,7 +36,6 @@ chdir $ENV{BUILDPATH};
my $type = shift;
my $out = shift;
-my $verbose = ($type =~ s/-v$//);
our %config = read_configure_cache();
@@ -61,7 +60,7 @@ exit 1;
sub message($$$) {
my ($type, $file, $command) = @_;
- if ($verbose) {
+ if ($ENV{INSPIRCD_VERBOSE}) {
print "$command\n";
} else {
print_format "\t<|GREEN $type:|>\t\t$file\n";