Make mkdep throw away stderr since people think the error messages printed are seriou...
authorJames Golovich <james@gnuinter.net>
Sun, 23 May 2004 17:17:27 +0000 (17:17 +0000)
committerJames Golovich <james@gnuinter.net>
Sun, 23 May 2004 17:17:27 +0000 (17:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3047 65c4cc65-6c06-0410-ace0-fbb531ad65f3

mkdep

diff --git a/mkdep b/mkdep
index 05b3aa1..94e6e48 100755 (executable)
--- a/mkdep
+++ b/mkdep
@@ -82,9 +82,9 @@ umask $um
 trap 'rm -rf $DTMP ; trap 2 ; kill -2 $$' 1 2 3 13 15
 
 if [ x$pflag = x ]; then
-       ${CC:-cc} -M "$@" | sed -e 's; \./; ;g' > $TMP
+       ${CC:-cc} -M "$@" 2>/dev/null | sed -e 's; \./; ;g' > $TMP
 else
-       ${CC:-cc} -M "$@" | sed -e 's;\.o :; :;' -e 's; \./; ;g' > $TMP
+       ${CC:-cc} -M "$@" 2>/dev/null | sed -e 's;\.o :; :;' -e 's; \./; ;g' > $TMP
 fi
 
 if [ $? != 0 ]; then