summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-10 13:41:07 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-10 13:41:07 +0000
commit8ad4a856d6f6911e6e76a9826ec9b7ba3964bc28 (patch)
tree6621bb9d78507e3a7892a8b85eb3e2bc4ec1f86d /makedepend.SH
parente8b5448cbeb856bdce5d0c8ec5689da10b83f8e1 (diff)
downloadperl-8ad4a856d6f6911e6e76a9826ec9b7ba3964bc28.tar.gz
If using gcc -B/foo/bar makedepend would give
unnecessary warnings about unused -B/foo/bar. p4raw-id: //depot/perl@11627
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-xmakedepend.SH3
1 files changed, 2 insertions, 1 deletions
diff --git a/makedepend.SH b/makedepend.SH
index ec21795429..4ab1ec3809 100755
--- a/makedepend.SH
+++ b/makedepend.SH
@@ -155,11 +155,12 @@ for file in `$cat .clist`; do
-e 's|\.c\.c|.c|' $uwinfix | \
$uniq | $sort | $uniq >> .deptmp
else
- $cppstdin $finc -I. $cppflags $cppminus <UU/$file.c |
+ $cppstdin $finc -I. $cppflags $cppminus <UU/$file.c 2>&1 |
$sed \
-e '1d' \
-e '/^#.*<stdin>/d' \
-e '/^#.*"-"/d' \
+ -e '/: file path prefix .* never used$/d' \
-e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
-e 's/^[ ]*#[ ]*line/#/' \
-e '/^# *[0-9][0-9]* *[".\/]/!d' \