Slight bug in dependencies caused occasional unnecessary diffs. Fixed.
authorBen Laurie <ben@openssl.org>
Wed, 19 Sep 2007 13:10:34 +0000 (13:10 +0000)
committerBen Laurie <ben@openssl.org>
Wed, 19 Sep 2007 13:10:34 +0000 (13:10 +0000)
apps/Makefile
util/clean-depend.pl

index 7019cfcdf2152f249f44a74e566d8946e3fb1ad8..c433ae0422fbd2f41db15b6765569305c720a09a 100644 (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/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
index 6c485d1e2fb12d9a83817e9e026e5fac8656199c..2b2bdb404880590ee6c553884fa333349b712970 100755 (executable)
@@ -37,8 +37,11 @@ foreach $file (sort keys %files) {
     $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;