This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
If using gcc -B/foo/bar makedepend would give
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 10 Aug 2001 13:41:07 +0000 (13:41 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 10 Aug 2001 13:41:07 +0000 (13:41 +0000)
unnecessary warnings about unused -B/foo/bar.

p4raw-id: //depot/perl@11627

makedepend.SH

index ec21795..4ab1ec3 100755 (executable)
@@ -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' \