localmodconfig: Fix parsing of "help" text
authorBenjamin Poirier <bpoirier@suse.com>
Mon, 11 Apr 2016 00:06:31 +0000 (17:06 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 26 Apr 2016 14:05:01 +0000 (10:05 -0400)
Help text may start with "help" or "---help---". This patch fixes
read_kconfig() to recognize the second variant.

This removes useless junk from %depends and %selects. That junk is due to
help text that contains the words "selects" and "depends".

Link: http://lkml.kernel.org/r/1460333193-16361-2-git-send-email-bpoirier@suse.com
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/kconfig/streamline_config.pl

index 64d750cc5ae424d0764e852ba03c1624c392c214..b2f904a24c5c1ad9978efb39aa0879bd8c5bba65 100755 (executable)
@@ -257,7 +257,7 @@ sub read_kconfig {
            $iflevel-- if ($iflevel);
 
        # stop on "help" and keywords that end a menu entry
-       } elsif (/^\s*help\s*$/ || /^(comment|choice|menu)\b/) {
+       } elsif (/^\s*(---)?help(---)?\s*$/ || /^(comment|choice|menu)\b/) {
            $state = "NONE";
        }
     }
This page took 0.027262 seconds and 5 git commands to generate.