include package description in menuconfig help

SVN-Revision: 3687
This commit is contained in:
Felix Fietkau 2006-04-21 00:50:48 +00:00
parent 519c9c34e7
commit 6a795b4d7b
2 changed files with 12 additions and 6 deletions

View file

@ -117,9 +117,13 @@ DUMPINFO += \
echo "Depends: $$(IDEPEND_$(1))"; \ echo "Depends: $$(IDEPEND_$(1))"; \
echo "Category: $(CATEGORY)"; \ echo "Category: $(CATEGORY)"; \
echo "Title: $(TITLE)"; \ echo "Title: $(TITLE)"; \
echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n,g'; \ echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n,g';
ifneq ($(URL),)
DUMPINFO += \
echo; \ echo; \
echo "$(URL)"; \ echo "$(URL)";
endif
DUMPINFO += \
echo "@@"; echo "@@";

View file

@ -28,6 +28,8 @@ sub print_category($) {
foreach my $depend (@{$pkg->{depends}}) { foreach my $depend (@{$pkg->{depends}}) {
print "\t\tdepends PACKAGE_$depend\n"; print "\t\tdepends PACKAGE_$depend\n";
} }
print "\t\thelp\n";
print $pkg->{description};
print "\n" print "\n"
} }
} }
@ -66,11 +68,11 @@ while ($line = <>) {
push @{$category{$1}->{$src}}, $pkg; push @{$category{$1}->{$src}}, $pkg;
}; };
$line =~ /^Description: \s*(.*)\s*$/ and do { $line =~ /^Description: \s*(.*)\s*$/ and do {
my $desc = $1; my $desc = "\t\t$1\n\n";
my $line; my $line;
while (<>) { while ($line = <>) {
last if /^@@/; last if $line =~ /^@@/;
$desc .= $1; $desc .= "\t\t$line";
} }
$pkg->{description} = $desc; $pkg->{description} = $desc;
} }