summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-05-19 22:46:24 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-05-19 22:46:24 +0000
commit93e50b06ca295bc34326f6221b48ff5e94ccaa12 (patch)
tree46f55bf4c2d3e1cfeb45070ddf91640bdacd87d7 /scripts
parent95bdcf394e439d688a5290a26a15e0bc31144f91 (diff)
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')
-rwxr-xr-xscripts/gen_menuconfig.pl13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/gen_menuconfig.pl b/scripts/gen_menuconfig.pl
index 3f4476a2c..e282ee3ed 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;
}
}