diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-29 20:08:13 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-29 20:08:13 +0000 |
| commit | 110dbb673e83af7fc7c7248fcf5f0e4383c04303 (patch) | |
| tree | 7918b11555602b7a84a9ffe72971bd1f8f077ae9 /run-cc.pl | |
| parent | bd2cb095aa686c3bf0f662c0029687645142ea9e (diff) | |
Final modifications to Autotools build system to work alongside CMake build system. CMake build system will only allow out-of-source building now. Removed all old NMake Makefiles for Windows to focus on use of CMake on Windows (it's not as important to require the old system on Windows like it is on *nix).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1878 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'run-cc.pl')
| -rwxr-xr-x | run-cc.pl | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl ### THIS IS DESIGNED TO BE RUN BY MAKE! DO NOT RUN FROM THE SHELL (because it MIGHT sigterm the shell)! ### @@ -16,7 +16,16 @@ use POSIX (); # The subs are passed the message, and anything the regex captured. -my $cc = shift(@ARGV); +my $flag = shift(@ARGV); +my $quiet = 0; +my $cc; +if ($flag eq "-q") { + $quiet = 1; + $cc = shift(@ARGV); +} +else { + $cc = $flag; +} my $showncmdline = 0; @@ -151,6 +160,10 @@ die "Cannot fork to start $cc! $!\n" unless defined($pid); if ($pid) { + if ($quiet == 0) { + printf "\t\e[1;32m%-20s\e[0m%s\n", $action . ":", $name unless $name eq ""; + } + my $fail = 0; # Parent - Close child-side pipes. close $w_stderr; |
