projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6afabb7
)
change syntax
author
Mike Baker
<
[email protected]
>
Sun, 14 May 2006 12:30:52 +0000
(12:30 +0000)
committer
Mike Baker
<
[email protected]
>
Sun, 14 May 2006 12:30:52 +0000
(12:30 +0000)
SVN-Revision: 3778
openwrt/scripts/gen_deps.pl
patch
|
blob
|
history
diff --git
a/openwrt/scripts/gen_deps.pl
b/openwrt/scripts/gen_deps.pl
index d4b6c76d09118437bdb2d5c4cc501d6a63da7136..a910a9937bbdebbc77fe9ef7adcdf9a9de3a039a 100755
(executable)
--- 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";
}