OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 507... Line 507...
507 print "$pkg->{source}\n"; 507 print "$pkg->{source}\n";
508 } 508 }
509 } 509 }
510 } 510 }
Line 511... Line 511...
511   511  
512 sub gen_package_auxiliary() { 512 sub gen_package_subdirs() {
513 parse_package_metadata($ARGV[0]) or exit 1; 513 parse_package_metadata($ARGV[0]) or exit 1;
514 foreach my $name (sort {uc($a) cmp uc($b)} keys %package) { 514 foreach my $name (sort {uc($a) cmp uc($b)} keys %package) {
515 my $pkg = $package{$name}; 515 my $pkg = $package{$name};
516 if ($pkg->{name} && $pkg->{repository}) { 516 if ($pkg->{name} && $pkg->{repository}) {
517 print "Package/$name/subdir = $pkg->{repository}\n"; 517 print "Package/$name/subdir = $pkg->{repository}\n";
518 } -  
519 if ($pkg->{name} && defined($pkg->{abiversion}) && length($pkg->{abiversion})) { -  
520 my $abiv; -  
521   -  
522 if ($pkg->{abiversion} =~ m!^(\d{4})-(\d{2})-(\d{2})-[0-9a-f]{7,40}$!) { -  
523 print STDERR "WARNING: Reducing ABI version '$pkg->{abiversion}' of package '$name' to '$1$2$3'\n"; -  
524 $abiv = "$1$2$3"; -  
525 } -  
526 else { -  
527 $abiv = $pkg->{abiversion}; -  
528 } -  
529   -  
530 foreach my $n (@{$pkg->{provides}}) { -  
531 print "Package/$n/abiversion = $abiv\n"; -  
532 } -  
533 } 518 }
534 } 519 }
Line 535... Line 520...
535 } 520 }
536   521  
Line 578... Line 563...
578 for ($cmd) { 563 for ($cmd) {
579 /^mk$/ and return gen_package_mk(); 564 /^mk$/ and return gen_package_mk();
580 /^config$/ and return gen_package_config(); 565 /^config$/ and return gen_package_config();
581 /^kconfig/ and return gen_kconfig_overrides(); 566 /^kconfig/ and return gen_kconfig_overrides();
582 /^source$/ and return gen_package_source(); 567 /^source$/ and return gen_package_source();
583 /^pkgaux$/ and return gen_package_auxiliary(); 568 /^subdirs$/ and return gen_package_subdirs();
584 /^license$/ and return gen_package_license(0); 569 /^license$/ and return gen_package_license(0);
585 /^licensefull$/ and return gen_package_license(1); 570 /^licensefull$/ and return gen_package_license(1);
586 /^usergroup$/ and return gen_usergroup_list(); 571 /^usergroup$/ and return gen_usergroup_list();
587 /^version_filter$/ and return gen_version_filtered_list(); 572 /^version_filter$/ and return gen_version_filtered_list();
588 } 573 }
Line 590... Line 575...
590 Available Commands: 575 Available Commands:
591 $0 mk [file] Package metadata in makefile format 576 $0 mk [file] Package metadata in makefile format
592 $0 config [file] Package metadata in Kconfig format 577 $0 config [file] Package metadata in Kconfig format
593 $0 kconfig [file] [config] [patchver] Kernel config overrides 578 $0 kconfig [file] [config] [patchver] Kernel config overrides
594 $0 source [file] Package source file information 579 $0 source [file] Package source file information
595 $0 pkgaux [file] Package auxiliary variables in makefile format 580 $0 subdirs [file] Package subdir information in makefile format
596 $0 license [file] Package license information 581 $0 license [file] Package license information
597 $0 licensefull [file] Package license information (full list) 582 $0 licensefull [file] Package license information (full list)
598 $0 usergroup [file] Package usergroup allocation list 583 $0 usergroup [file] Package usergroup allocation list
599 $0 version_filter [patchver] [list...] Filter list of version tagged strings 584 $0 version_filter [patchver] [list...] Filter list of version tagged strings