aboutsummaryrefslogtreecommitdiffstats
path: root/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
commite22333c1eca6a4a2fa362f7544d6085ebbc687cb (patch)
tree6e101e67979d2bb412a1027e8ca7973bd9d1eea9 /scripts/gen_menuconfig.pl
parent9a9c73042c92b9a0d21513c1f893282f144f3d9b (diff)
downloadupstream-e22333c1eca6a4a2fa362f7544d6085ebbc687cb.tar.gz
upstream-e22333c1eca6a4a2fa362f7544d6085ebbc687cb.tar.bz2
upstream-e22333c1eca6a4a2fa362f7544d6085ebbc687cb.zip
include package description in menuconfig help
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3687 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/gen_menuconfig.pl')
-rwxr-xr-xscripts/gen_menuconfig.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/gen_menuconfig.pl b/scripts/gen_menuconfig.pl
index 70e31a45f5..3f4476a2c6 100755
--- a/scripts/gen_menuconfig.pl
+++ b/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;
}