Use 'grep -q' instead of redirecting grep output to /dev/null.

The -q option is part of POSIX.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26902 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-05-27 14:33:16 +00:00
parent f4724c6a9a
commit 2aa93c54f5
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@ test $1 = "help/help_mp-en.h" && exit 0
curr=""
while read -r line; do
if echo "$line" | grep '^#define' > /dev/null 2>&1; then
if echo "$line" | grep -q '^#define' ; then
curr=`printf "%s\n" "$line" | cut -d ' ' -f 2`
if grep "^#define $curr[ ]" $1 > /dev/null 2>&1; then
if grep -q "^#define $curr[ ]" $1 ; then
curr=""
fi
else