Skip to content

Commit

Permalink
Slight bug in dependencies caused occasional unnecessary diffs. Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Laurie committed Sep 19, 2007
1 parent 4f2b7d4 commit 1c90899
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ speed.o: ../include/openssl/safestack.h ../include/openssl/sha.h
speed.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
speed.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
speed.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
speed.o: ../include/openssl/x509_vfy.h testdsa.h testrsa.h apps.h speed.c
speed.o: ../include/openssl/x509_vfy.h apps.h speed.c testdsa.h testrsa.h
spkac.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
spkac.o: ../include/openssl/buffer.h ../include/openssl/conf.h
spkac.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
Expand Down
7 changes: 5 additions & 2 deletions util/clean-depend.pl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@
$file=~s/^\.\///;
push @{$files{$file}},$origfile;
my $prevdep="";
foreach $dep (sort @{$files{$file}}) {
$dep=~s/^\.\///;

# Remove leading ./ before sorting
my @deps = map { $_ =~ s/^\.\///; $_ } @{$files{$file}};

foreach $dep (sort @deps) {
next if $prevdep eq $dep; # to exterminate duplicates...
$prevdep = $dep;
$len=0 if $len+length($dep)+1 >= 80;
Expand Down

0 comments on commit 1c90899

Please sign in to comment.