allow more complex defaults in menuconfig
authorFelix Fietkau <nbd@openwrt.org>
Tue, 30 May 2006 20:22:43 +0000 (20:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 30 May 2006 20:22:43 +0000 (20:22 +0000)
SVN-Revision: 3848

openwrt/scripts/gen_menuconfig.pl

index a7f939ff52d38e0cf13b7d8f4f6895bb956b39ea..c40e1caedce46dfed3c26b0fe4e40ee57918e328 100755 (executable)
@@ -24,7 +24,9 @@ sub print_category($) {
                        $pkg->{menu} and print "menu";
                        print "config PACKAGE_".$pkg->{name}."\n";
                        print "\t\ttristate \"$title\"\n";
-                       print "\t\tdefault ".$pkg->{default}."\n";
+                       foreach my $default (split /\s*,\s*/, $pkg->{default}) {
+                               print "\t\tdefault $default\n";
+                       }
                        foreach my $depend (@{$pkg->{depends}}) {
                                my $m = "depends";
                                $depend =~ s/^([@\+])//;