diff options
author | Mike Baker <mbm@openwrt.org> | 2006-05-19 22:46:24 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2006-05-19 22:46:24 +0000 |
commit | 59c1faa1503df905ebe75e435eebf6fb0de107e2 (patch) | |
tree | 22d07ed3ee66e782b47571a3ac139138cfa596ae /openwrt/scripts/gen_menuconfig.pl | |
parent | b64d24928b353bd6c263190c903590632da6ac53 (diff) | |
download | mtk-20170518-59c1faa1503df905ebe75e435eebf6fb0de107e2.zip mtk-20170518-59c1faa1503df905ebe75e435eebf6fb0de107e2.tar.gz mtk-20170518-59c1faa1503df905ebe75e435eebf6fb0de107e2.tar.bz2 |
clean up menu configuration
SVN-Revision: 3801
Diffstat (limited to 'openwrt/scripts/gen_menuconfig.pl')
-rwxr-xr-x | openwrt/scripts/gen_menuconfig.pl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/openwrt/scripts/gen_menuconfig.pl b/openwrt/scripts/gen_menuconfig.pl index 3f4476a..e282ee3 100755 --- a/openwrt/scripts/gen_menuconfig.pl +++ b/openwrt/scripts/gen_menuconfig.pl @@ -30,7 +30,9 @@ sub print_category($) { } print "\t\thelp\n"; print $pkg->{description}; - print "\n" + print "\n"; + + $pkg->{config} and print $pkg->{config}."\n"; } } print "endmenu\n\n"; @@ -75,6 +77,15 @@ while ($line = <>) { $desc .= "\t\t$line"; } $pkg->{description} = $desc; + }; + $line =~ /^Config: \s*(.*)\s*$/ and do { + my $conf = "$1\n"; + my $line; + while ($line = <>) { + last if $line =~ /^@@/; + $conf .= "$line"; + } + $pkg->{config} = $conf; } } |