[MPlayer-cvslog] r26902 - trunk/help/help_diff.sh

diego subversion at mplayerhq.hu
Tue May 27 16:33:16 CEST 2008


Author: diego
Date: Tue May 27 16:33:16 2008
New Revision: 26902

Log:
Use 'grep -q' instead of redirecting grep output to /dev/null.
The -q option is part of POSIX.


Modified:
   trunk/help/help_diff.sh

Modified: trunk/help/help_diff.sh
==============================================================================
--- trunk/help/help_diff.sh	(original)
+++ trunk/help/help_diff.sh	Tue May 27 16:33:16 2008
@@ -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



More information about the MPlayer-cvslog mailing list