replace $(IDIR_*) with $(1)
[openwrt.git] / scripts / gen_menuconfig.pl
index 70e31a4..3f4476a 100755 (executable)
@@ -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;
        }
This page took 0.02508 seconds and 4 git commands to generate.