Slight bug in dependencies caused occasional unnecessary diffs. Fixed.

This commit is contained in:
Ben Laurie 2007-09-19 13:10:34 +00:00
parent 4f2b7d48b1
commit 1c90899eef
2 changed files with 6 additions and 3 deletions

View File

@ -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/stack.h ../include/openssl/symhacks.h
speed.o: ../include/openssl/txt_db.h ../include/openssl/ui.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/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: ../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/buffer.h ../include/openssl/conf.h
spkac.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h spkac.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h

View File

@ -37,8 +37,11 @@ foreach $file (sort keys %files) {
$file=~s/^\.\///; $file=~s/^\.\///;
push @{$files{$file}},$origfile; push @{$files{$file}},$origfile;
my $prevdep=""; 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... next if $prevdep eq $dep; # to exterminate duplicates...
$prevdep = $dep; $prevdep = $dep;
$len=0 if $len+length($dep)+1 >= 80; $len=0 if $len+length($dep)+1 >= 80;