diff options
author | Ben Laurie <ben@openssl.org> | 2007-09-19 14:53:18 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2007-09-19 14:53:18 +0000 |
commit | 9311c4421abb4122b6191d6f0bc4652f896bd779 (patch) | |
tree | bacd67dd7810cd3191a3d18518078504e3ac6696 /util/clean-depend.pl | |
parent | aaa4f448cf4c4a4efbc726ee7d835b01f94ca16b (diff) | |
download | openssl-9311c4421abb4122b6191d6f0bc4652f896bd779.tar.gz |
Fix dependencies. Make depend.
Diffstat (limited to 'util/clean-depend.pl')
-rwxr-xr-x | util/clean-depend.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/clean-depend.pl b/util/clean-depend.pl index 6c485d1e2f..d3525b0ed0 100755 --- a/util/clean-depend.pl +++ b/util/clean-depend.pl @@ -37,7 +37,11 @@ foreach $file (sort keys %files) { $file=~s/^\.\///; push @{$files{$file}},$origfile; my $prevdep=""; - foreach $dep (sort @{$files{$file}}) { + + # Remove leading ./ before sorting + my @deps = map { $_ =~ s/^\.\///; $_ } @{$files{$file}}; + + foreach $dep (sort @deps) { $dep=~s/^\.\///; next if $prevdep eq $dep; # to exterminate duplicates... $prevdep = $dep; |