Lines Matching +full:no +full:- +full:eq +full:- +full:null
5 # version 1.0.0-rc11.
11 declare -a SPATCH_PID
16 if [ -n "$V" -a "$V" != "0" ]; then
22 if [ -z "$J" ]; then
28 FLAGS="$SPFLAGS --very-quiet"
30 # spatch only allows include directories with the syntax "-I include"
31 # while gcc also allows "-Iinclude" and "-include include"
32 COCCIINCLUDE=${LINUXINCLUDE//-I/-I }
33 COCCIINCLUDE=${COCCIINCLUDE// -include/ --include}
35 if [ "$C" = "1" -o "$C" = "2" ]; then
39 shift $(( $# - 1 ))
44 OPTIONS="--dir $srctree $COCCIINCLUDE"
46 OPTIONS="--dir $KBUILD_EXTMOD $COCCIINCLUDE"
51 OPTIONS="--patch $srctree $OPTIONS"
54 if [ ! -x "$SPATCH" ]; then
74 elif [ "$MODE" = "report" -o "$MODE" = "org" ] ; then
75 FLAGS="$FLAGS --no-show-diff"
87 if [ $VERBOSE -ne 0 ] ; then
90 for i in $(seq 0 $(( NPROC - 1)) ); do
91 eval "$@ --max $NPROC --index $i &"
93 if [ $VERBOSE -eq 2 ] ; then
101 for i in $(seq $(( NPROC - 1 )) ); do
102 if [ $VERBOSE -eq 2 ] ; then
105 kill ${SPATCH_PID[$i]} 2>/dev/null
112 OPT=`grep "Option" $COCCI | cut -d':' -f2`
114 # The option '--parse-cocci' can be used to syntactically check the SmPL files.
116 # $SPATCH -D $MODE $FLAGS -parse_cocci $COCCI $OPT > /dev/null
118 if [ $VERBOSE -ne 0 -a $ONLINE -eq 0 ] ; then
127 sed -ne 's|^///||p' $COCCI
146 if [ "`sed -ne 's|^//#||p' $COCCI`" ] ; then
148 sed -ne 's|^//#||p' $COCCI
154 run_cmd $SPATCH -D patch \
155 $FLAGS --cocci-file $COCCI $OPT $OPTIONS || \
156 run_cmd $SPATCH -D report \
157 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || \
158 run_cmd $SPATCH -D context \
159 $FLAGS --cocci-file $COCCI $OPT $OPTIONS || \
160 run_cmd $SPATCH -D org \
161 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || exit 1
163 run_cmd $SPATCH -D report \
164 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff && \
165 run_cmd $SPATCH -D context \
166 $FLAGS --cocci-file $COCCI $OPT $OPTIONS || exit 1
168 run_cmd $SPATCH -D $MODE $FLAGS --cocci-file $COCCI $OPT $OPTIONS || exit 1
174 for f in `find $srctree/scripts/coccinelle/ -name '*.cocci' -type f | sort`; do