projects
/
openwrt
/
staging
/
luka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c34681e
)
allow more complex defaults in menuconfig
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 30 May 2006 20:22:43 +0000
(20:22 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 30 May 2006 20:22:43 +0000
(20:22 +0000)
SVN-Revision: 3848
openwrt/scripts/gen_menuconfig.pl
patch
|
blob
|
history
diff --git
a/openwrt/scripts/gen_menuconfig.pl
b/openwrt/scripts/gen_menuconfig.pl
index a7f939ff52d38e0cf13b7d8f4f6895bb956b39ea..c40e1caedce46dfed3c26b0fe4e40ee57918e328 100755
(executable)
--- a/
openwrt/scripts/gen_menuconfig.pl
+++ b/
openwrt/scripts/gen_menuconfig.pl
@@
-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/^([@\+])//;