]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Use /x to make regex more readable.
authorSimon Ruderich <simon@ruderich.org>
Sun, 18 Mar 2012 00:23:18 +0000 (01:23 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 18 Mar 2012 00:23:18 +0000 (01:23 +0100)
bin/blhc

index ee98a895db0924ee88a7762840484f49fe3e0d6c..527a09866e59214cdb620e007c8f74796e94084b 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -335,7 +335,11 @@ while (my $line = <>) {
             #
             # `./configure` output.
             next if not $non_verbose and $line =~ /^checking /;
             #
             # `./configure` output.
             next if not $non_verbose and $line =~ /^checking /;
-            next if $line =~ /^\s*(?:C )?(?:C|c)ompiler[\s.]*:\s+$cc_regex(?:\s-std=[a-z0-9:+]+)?\s*$/
+            next if $line =~ /^\s*(?:C\s+)?
+                               (?:C|c)ompiler[\s.]*:\s+
+                               $cc_regex
+                               (?:\s-std=[a-z0-9:+]+)?\s*$
+                             /x
                     or $line =~ /^\s*(?:- )?(?:CC|CXX)\s*=\s*$cc_regex\s*$/
                     or $line =~ /^\s*-- Check for working (?:C|CXX) compiler: /
                     or $line =~ /^\s*(?:echo )?Using [A-Z_]+\s*=\s*/;
                     or $line =~ /^\s*(?:- )?(?:CC|CXX)\s*=\s*$cc_regex\s*$/
                     or $line =~ /^\s*-- Check for working (?:C|CXX) compiler: /
                     or $line =~ /^\s*(?:echo )?Using [A-Z_]+\s*=\s*/;