summaryrefslogtreecommitdiff
path: root/openwrt/scripts/gen_menuconfig.pl
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-04-21 00:50:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-04-21 00:50:48 +0000
commit6a795b4d7bf446f21b4d8daea2d4aa83b6815c52 (patch)
tree9af65bda3da2c0e6591a822d74b61632b0ae0a57 /openwrt/scripts/gen_menuconfig.pl
parent519c9c34e7ac20ccd86e6618eefe69f1eb2ef242 (diff)
downloadmtk-20170518-6a795b4d7bf446f21b4d8daea2d4aa83b6815c52.zip
mtk-20170518-6a795b4d7bf446f21b4d8daea2d4aa83b6815c52.tar.gz
mtk-20170518-6a795b4d7bf446f21b4d8daea2d4aa83b6815c52.tar.bz2
include package description in menuconfig help
SVN-Revision: 3687
Diffstat (limited to 'openwrt/scripts/gen_menuconfig.pl')
-rwxr-xr-xopenwrt/scripts/gen_menuconfig.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/openwrt/scripts/gen_menuconfig.pl b/openwrt/scripts/gen_menuconfig.pl
index 70e31a4..3f4476a 100755
--- a/openwrt/scripts/gen_menuconfig.pl
+++ b/openwrt/scripts/gen_menuconfig.pl
@@ -28,6 +28,8 @@ sub print_category($) {
foreach my $depend (@{$pkg->{depends}}) {
print "\t\tdepends PACKAGE_$depend\n";
}
+ print "\t\thelp\n";
+ print $pkg->{description};
print "\n"
}
}
@@ -66,11 +68,11 @@ while ($line = <>) {
push @{$category{$1}->{$src}}, $pkg;
};
$line =~ /^Description: \s*(.*)\s*$/ and do {
- my $desc = $1;
+ my $desc = "\t\t$1\n\n";
my $line;
- while (<>) {
- last if /^@@/;
- $desc .= $1;
+ while ($line = <>) {
+ last if $line =~ /^@@/;
+ $desc .= "\t\t$line";
}
$pkg->{description} = $desc;
}