Commit 4035b1c1 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Use sed -e instead of multiple grep -v. This should scale better.

parent ce9226f8
......@@ -234,20 +234,21 @@ fi
if test -f r/make.pass
then
egrep -i 'warning|\(w\)' r/makelog.txt \
|grep -v '".*1506-112 .W. Duplicate type qualifier "volatile" ignored.' \
|grep -v '/usr/include/bits/socket.h:.*: warning: cast increases required alignment of target type' \
|grep -v '/usr/include/sys/vnode.h:.*: warning: declaration of .free. shadows global declaration' \
|grep -v 'aux-item-def-scan\.c:.*: warning: .* defined but not used' \
|grep -v 'connections.c:.*: warning: duplicate .volatile.' \
|grep -v 'cc: 1501-245 Warning: Hard ulimit has been reduced to less than RLIM_INFINITY. There may not be enough space to complete the compilation.' \
|grep -v '"format" is an unrecognized __declspec attribute' \
|grep -v 'getopt.[hc]:.*: warning: function declaration isn.t a prototype' \
|grep -v 'getopt.c:451: warning: .indfound. might be used uninitialized in this function' \
|grep -v 'getopt.c:461: warning: comparison between signed and unsigned' \
|grep -v 'getopt1.c:.*: warning: function declaration isn.t a prototype' \
|grep -v 'ramkomd.c:156: warning: function declaration isn.t a prototype' \
|grep -v 'sigflags.h:3[06]: warning: duplicate .volatile.' \
|grep -v regex\\.c \
|sed \
-e '/".*1506-112 .W. Duplicate type qualifier "volatile" ignored./d' \
-e '/\/usr\/include\/bits\/socket.h:.*: warning: cast increases required alignment of target type/d' \
-e '/\/usr\/include\/sys\/vnode.h:.*: warning: declaration of .free. shadows global declaration/d' \
-e '/aux-item-def-scan\.c:.*: warning: .* defined but not used/d' \
-e '/connections.c:.*: warning: duplicate .volatile./d' \
-e '/cc: 1501-245 Warning: Hard ulimit has been reduced to less than RLIM_INFINITY. There may not be enough space to complete the compilation./d' \
-e '/"format" is an unrecognized __declspec attribute/d' \
-e '/getopt.[hc]:.*: warning: function declaration isn.t a prototype/d' \
-e '/getopt.c:451: warning: .indfound. might be used uninitialized in this function/d' \
-e '/getopt.c:461: warning: comparison between signed and unsigned/d' \
-e '/getopt1.c:.*: warning: function declaration isn.t a prototype/d' \
-e '/ramkomd.c:156: warning: function declaration isn.t a prototype/d' \
-e '/sigflags.h:3[06]: warning: duplicate .volatile./d' \
-e '/regex\.c/d' \
> r/makewarn.txt
if test `wc -l < r/makewarn.txt` -gt 0
then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment