From: Hans Ranke Date: Mon, 8 Jul 2002 16:17:00 +0000 (+0200) Subject: [ID 20020708.001] makedepend problem (output of cppstdin garbled) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0fcc65bb90871a92ca233207ff84015dfc78f2a6;p=p5sagit%2Fp5-mst-13.2.git [ID 20020708.001] makedepend problem (output of cppstdin garbled) Message-Id: <5.8.0_12541_1026136670@regency> p4raw-id: //depot/perl@17436 --- diff --git a/makedepend.SH b/makedepend.SH index 5894995..b8581e9 100755 --- a/makedepend.SH +++ b/makedepend.SH @@ -150,7 +150,7 @@ for file in `$cat .clist`; do -e 's|\.c\.c|.c|' $uwinfix | \ $uniq | $sort | $uniq >> .deptmp else - $cppstdin $finc -I. $cppflags $cppminus &1 | + $cppstdin $finc -I. $cppflags $cppminus .cout 2>.cerr $sed \ -e '1d' \ -e '/^#.*/d' \ @@ -165,7 +165,7 @@ for file in `$cat .clist`; do -e 's/^.*"\(.*\)".*$/'$filebase'\$(OBJ_EXT): \1/' \ -e 's/^# *[0-9][0-9]* \(.*\)$/'$filebase'\$(OBJ_EXT): \1/' \ -e 's|: \./|: |' \ - -e 's|\.c\.c|.c|' $uwinfix | \ + -e 's|\.c\.c|.c|' $uwinfix .cout .cerr| \ $uniq | $sort | $uniq >> .deptmp fi done @@ -230,7 +230,7 @@ $rm -f $mf $cp $mf.new $mf $rm $mf.new $echo "# WARNING: Put nothing here or make depend will gobble it up!" >> $mf -$rm -rf .deptmp UU .shlist .clist .hlist .hsed +$rm -rf .deptmp UU .shlist .clist .hlist .hsed .cout .cerr rmdir .depending !NO!SUBS!