diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-10 21:57:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-10 21:57:42 +0000 |
commit | 7baae92cc9ac9d81b995e5fdf091dd5e9cef50ec (patch) | |
tree | f21ba3e18d6eee0f0da85a1d8dbe4c3232054b5c /make/run-cc.pl | |
parent | 4965a1d6697565b1a72de31deaccfd93180bd403 (diff) |
Brainfart
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8886 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/run-cc.pl')
-rwxr-xr-x | make/run-cc.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/make/run-cc.pl b/make/run-cc.pl index 58e7f6050..75234213c 100755 --- a/make/run-cc.pl +++ b/make/run-cc.pl @@ -45,11 +45,18 @@ my $pid; my ($r_stderr, $w_stderr); my $name = ""; +my $action = ""; foreach my $n (@ARGV) { if ($n =~ /\.cpp$/) { + $action = "BUILD"; + $name = $n; + } + elsif ($n !~ /\.^-c/) + { + $action = "LINK"; $name = $n; } } @@ -66,7 +73,7 @@ die "Cannot fork to start gcc! $!\n" unless defined($pid); if ($pid) { - print "\t\e[1;32mBUILD:\e[0m\t\t$name\n" unless $name eq ""; + print "\t\e[1;32m$action:\e[0m\t\t$name\n" unless $name eq ""; my $fail = 0; # Parent - Close child-side pipes. |