aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-17 13:08:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-17 13:08:57 +0000
commit287b45cc7b21df3fb2893f9eff93d380ec31e8b9 (patch)
tree333bc7840f3ceb63452e2d82d1918a5b94f02335 /scripts
parent0e5998b54319b3425cfe6eed86389298b50c60e1 (diff)
downloadupstream-287b45cc7b21df3fb2893f9eff93d380ec31e8b9.tar.gz
upstream-287b45cc7b21df3fb2893f9eff93d380ec31e8b9.tar.bz2
upstream-287b45cc7b21df3fb2893f9eff93d380ec31e8b9.zip
implement sorting for menuconfig submenus
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5182 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_menuconfig.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/gen_menuconfig.pl b/scripts/gen_menuconfig.pl
index fe01310928..c0279d5452 100755
--- a/scripts/gen_menuconfig.pl
+++ b/scripts/gen_menuconfig.pl
@@ -34,7 +34,10 @@ sub print_category($) {
print "menu \"$cat\"\n\n";
my %spkg = %{$category{$cat}};
foreach my $spkg (sort {uc($a) cmp uc($b)} keys %spkg) {
- foreach my $pkg (@{$spkg{$spkg}}) {
+ my @pkgs = sort {
+ $a->{submenu}."->".$a->{name} cmp $b->{submenu}."->".$b->{name}
+ } @{$spkg{$spkg}};
+ foreach my $pkg (@pkgs) {
if ($cur_menu ne $pkg->{submenu}) {
close_submenu();
if ($pkg->{submenu}) {