diff options
author | Richard Levitte <levitte@openssl.org> | 2001-07-31 17:02:44 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-07-31 17:02:44 +0000 |
commit | 6da980e2b56f245ff3c4be277ede0f93c5f174c0 (patch) | |
tree | eb47ee2d8a6ef7dc34f71ce709d25ab6e4137ae8 /util | |
parent | 37f599bcecac324bae076f0372557612cfcb3e93 (diff) | |
download | openssl-6da980e2b56f245ff3c4be277ede0f93c5f174c0.tar.gz |
Make sure the source file is included among the dependencies. This is
the norm for 'gcc -M' but not for 'makedepend', and is merely
introduced here to avoid commit wars.
Diffstat (limited to 'util')
-rwxr-xr-x | util/clean-depend.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/clean-depend.pl b/util/clean-depend.pl index d2b78282c0..15ce8f0959 100755 --- a/util/clean-depend.pl +++ b/util/clean-depend.pl @@ -14,11 +14,15 @@ my %files; my $thisfile=""; while(<STDIN>) { my ($dummy, $file,$deps)=/^((.*):)? (.*)$/; + my $origfile=""; $thisfile=$file if defined $file; next if !defined $deps; + $origfile=$thisfile; + $origfile=~s/\.o$/.c/; my @deps=split ' ',$deps; @deps=grep(!/^\//,@deps); @deps=grep(!/^\\$/,@deps); + @deps=grep(!/^$origfile$/,@deps); push @{$files{$thisfile}},@deps; } @@ -26,6 +30,9 @@ my $file; foreach $file (sort keys %files) { my $len=0; my $dep; + my $origfile=$file; + $origfile=~s/\.o$/.c/; + push @{$files{$file}},$origfile; foreach $dep (sort @{$files{$file}}) { $len=0 if $len+length($dep)+1 >= 80; if($len == 0) { |