projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b12506
)
makedepend sometimes produces duplicates. Remove them.
author
Richard Levitte
<levitte@openssl.org>
Wed, 10 Oct 2001 07:44:54 +0000
(07:44 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 10 Oct 2001 07:44:54 +0000
(07:44 +0000)
util/clean-depend.pl
patch
|
blob
|
history
diff --git
a/util/clean-depend.pl
b/util/clean-depend.pl
index 8e27aaae5e85d81eb4de2fabcbc6d93bc322042c..322bfcc582fc7d14da5831f1e12de736f8319805 100755
(executable)
--- a/
util/clean-depend.pl
+++ b/
util/clean-depend.pl
@@
-35,7
+35,10
@@
foreach $file (sort keys %files) {
my $origfile=$file;
$origfile=~s/\.o$/.c/;
push @{$files{$file}},$origfile;
+ my $prevdep="";
foreach $dep (sort @{$files{$file}}) {
+ next if $prevdep eq $dep; # to exterminate duplicates...
+ $prevdep = $dep;
$len=0 if $len+length($dep)+1 >= 80;
if($len == 0) {
print "\n$file:";