summaryrefslogtreecommitdiff
path: root/openwrt/scripts/gen_menuconfig.pl
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-05-19 22:46:24 +0000
committerMike Baker <mbm@openwrt.org>2006-05-19 22:46:24 +0000
commit59c1faa1503df905ebe75e435eebf6fb0de107e2 (patch)
tree22d07ed3ee66e782b47571a3ac139138cfa596ae /openwrt/scripts/gen_menuconfig.pl
parentb64d24928b353bd6c263190c903590632da6ac53 (diff)
downloadmtk-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-xopenwrt/scripts/gen_menuconfig.pl13
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;
}
}