X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Fgen_menuconfig.pl;h=3f4476a2c6a5a80eac9a11e5ffebd59812d41949;hb=c9a87c3c4d5a8f1979410213bbc8588ddf506405;hp=70e31a45f5b419d802c164c5c77e32cc966b9d3d;hpb=096afa4e695916a8068c82af6807f9b6de587c38;p=openwrt-10.03%2F.git diff --git a/scripts/gen_menuconfig.pl b/scripts/gen_menuconfig.pl index 70e31a45f..3f4476a2c 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; }