diff options
Diffstat (limited to 'src/lib/libcrypto/util/clean-depend.pl')
-rw-r--r-- | src/lib/libcrypto/util/clean-depend.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libcrypto/util/clean-depend.pl b/src/lib/libcrypto/util/clean-depend.pl index 6c485d1e2f..2b2bdb4048 100644 --- a/src/lib/libcrypto/util/clean-depend.pl +++ b/src/lib/libcrypto/util/clean-depend.pl | |||
@@ -37,8 +37,11 @@ foreach $file (sort keys %files) { | |||
37 | $file=~s/^\.\///; | 37 | $file=~s/^\.\///; |
38 | push @{$files{$file}},$origfile; | 38 | push @{$files{$file}},$origfile; |
39 | my $prevdep=""; | 39 | my $prevdep=""; |
40 | foreach $dep (sort @{$files{$file}}) { | 40 | |
41 | $dep=~s/^\.\///; | 41 | # Remove leading ./ before sorting |
42 | my @deps = map { $_ =~ s/^\.\///; $_ } @{$files{$file}}; | ||
43 | |||
44 | foreach $dep (sort @deps) { | ||
42 | next if $prevdep eq $dep; # to exterminate duplicates... | 45 | next if $prevdep eq $dep; # to exterminate duplicates... |
43 | $prevdep = $dep; | 46 | $prevdep = $dep; |
44 | $len=0 if $len+length($dep)+1 >= 80; | 47 | $len=0 if $len+length($dep)+1 >= 80; |