From: Mike Baker Date: Sun, 14 May 2006 12:30:52 +0000 (+0000) Subject: change syntax X-Git-Tag: reboot~30718^2~699 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e63936f36838ffae1b4c1c6c2723ed0913caccd1;p=openwrt%2Fstaging%2Fblogic.git change syntax SVN-Revision: 3778 --- diff --git a/openwrt/scripts/gen_deps.pl b/openwrt/scripts/gen_deps.pl index d4b6c76d0911..a910a9937bbd 100755 --- a/openwrt/scripts/gen_deps.pl +++ b/openwrt/scripts/gen_deps.pl @@ -25,10 +25,15 @@ while ($line = <>) { } foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) { - print "$name: "; + my $hasdeps = 0; + $line = "$pkg{$name}->{src}-compile:"; foreach my $dep (@{$pkg{$name}->{depends}}) { - print "$dep "; + if (defined $pkg{$dep}->{src} && $pkg{$name}->{src} ne $pkg{$dep}->{src}) { + $hasdeps = 1; + $line .= " $pkg{$dep}->{src}-compile"; + } + } + if ($hasdeps) { + print "$line\n"; } - print "\n\tmake -C ".$pkg{$name}->{src}."\n"; - print "\n"; }