From: Simon Ruderich Date: Sat, 30 Jun 2012 01:16:50 +0000 (+0200) Subject: Minor cleanup. X-Git-Tag: 0.04~20 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ad221453b3058bdc13ab4b9314348ac2e5d6d643;hp=2bc152e30827151c3518206220b516dd4a38a85f;p=blhc%2Fblhc.git Minor cleanup. //o is only useful if the regex contains variables. --- diff --git a/bin/blhc b/bin/blhc index 3169e0b..348dbb6 100755 --- a/bin/blhc +++ b/bin/blhc @@ -641,8 +641,7 @@ foreach my $file (@ARGV) { # only, doesn't use the dpkg-buildpackage header. Necessary to ignore # build logs which aren't built (wrong architecture, build error, # etc.). - if (not $arch - and $line =~ /^Architecture: (.+)$/) { + if (not $arch and $line =~ /^Architecture: (.+)$/) { $arch = $1; } @@ -788,7 +787,7 @@ foreach my $file (@ARGV) { and $line =~ /^(?:checking|[Cc]onfigure:) /; next if $line =~ /^\s*(?:Host\s+)?(?:C(?:\+\+)?\s+)? [Cc]ompiler[\s.]*:?\s+ - /xo; + /x; next if $line =~ /^\s*(?:- )?(?:HOST_)?(?:CC|CXX)\s*=\s*$cc_regex_full\s*$/o; # `moc-qt4`, contains '-I/usr/share/qt4/mkspecs/linux-g++' (or # similar for other architectures) which gets recognized as a