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 | 6ae20c689a562e133596a018fa65b771fde67c5b (patch) | |
tree | 46f55bf4c2d3e1cfeb45070ddf91640bdacd87d7 /scripts/gen_menuconfig.pl | |
parent | cd466375e1cff138808173308b7d3d9446fc7303 (diff) | |
download | upstream-6ae20c689a562e133596a018fa65b771fde67c5b.tar.gz upstream-6ae20c689a562e133596a018fa65b771fde67c5b.tar.bz2 upstream-6ae20c689a562e133596a018fa65b771fde67c5b.zip |
clean up menu configuration
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3801 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/gen_menuconfig.pl')
-rwxr-xr-x | scripts/gen_menuconfig.pl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/gen_menuconfig.pl b/scripts/gen_menuconfig.pl index 3f4476a2c6..e282ee3ed2 100755 --- a/scripts/gen_menuconfig.pl +++ b/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; } } |