move DEFAULT_foo out of PACKAGE_foo, it was breaking package menus.
authorNicolas Thill <nico@openwrt.org>
Wed, 20 Dec 2006 09:53:33 +0000 (09:53 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 20 Dec 2006 09:53:33 +0000 (09:53 +0000)
SVN-Revision: 5881

scripts/gen_package_config.pl

index 4ce117c..51031a8 100755 (executable)
@@ -66,6 +66,8 @@ sub print_category($) {
                        }
                        $menus{$menu} or $menus{$menu} = [];
                        push @{$menus{$menu}}, $pkg;
+                       print "\tconfig DEFAULT_".$pkg->{name}."\n";
+                       print "\t\tbool\n\n";
                }
        }
        my @menus = sort {
@@ -89,8 +91,6 @@ sub print_category($) {
                        if ($c > 0) {
                                $title .= ("." x $c). " ". $pkg->{title};
                        }
-                       print "\tconfig DEFAULT_".$pkg->{name}."\n";
-                       print "\t\tbool\n\n";
                        print "\t";
                        $pkg->{menu} and print "menu";
                        print "config PACKAGE_".$pkg->{name}."\n";