scripts/feeds: use 10 chars for feed name column width
[openwrt/openwrt.git] / scripts / target-metadata.pl
index 3422572d1639ab2b57454a64330be4afb1f28506..7f7dc6d4ee77efdb814bd54a0836e6d927f0efee 100755 (executable)
@@ -276,8 +276,12 @@ menu "Target Devices"
 
 EOF
        foreach my $target (@target) {
-               my $profiles = $target->{profiles};
-               foreach my $profile (@{$target->{profiles}}) {
+               my @profiles = sort {
+                       my $x = $a->{name};
+                       my $y = $b->{name};
+                       "\L$x" cmp "\L$y";
+               } @{$target->{profiles}};
+               foreach my $profile (@profiles) {
                        next unless $profile->{id} =~ /^DEVICE_/;
                        print <<EOF;
 menuconfig TARGET_DEVICE_$target->{conf}_$profile->{id}