[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/kdetestscripts
From:       Adriaan de Groot <groot () kde ! org>
Date:       2005-09-30 21:16:54
Message-ID: 1128115014.069149.26623.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 465797 by adridg:

Also print line number for this check -- assuming FNR is portable.

 M  +1 -1      macrounderscore  


--- trunk/playground/base/kdetestscripts/macrounderscore #465796:465797
@@ -9,7 +9,7 @@
 # TODO Also check for #define _FOO_H_
 
 for file in `find . -name '*.cpp' -o -name '*.cc' -o -name '*.h'` ; do
-	awk '/#define/&&/__/ {print $0; exit 1}' $file
+	awk '/#define/&&/__/ {print FNR ": " $0; exit 1}' $file
 	if [ $? = 1 ] ; then
 		echo $file;
 		echo
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic