Don't add the mark for any section lines.
Signed-off-by: NeilBrown <neil@brown.name>
if [ ! -f "$b" ]; then
continue
fi
- grep '#####:' "$i" | grep -vE '(NOTEST|UNTESTED|:######|}\$$|:$|:[ ]*(\||\$))' |
+ grep '#####:' "$i" | grep -vE '(NOTEST|UNTESTED|: *##|}\$$|:$|:[ ]*(\||\$))' |
awk -F: '{printf "%ds,$, // UNTESTED,\n", $2}' |
sed -i -e 's,[ ]*// UNTESTED$,,' -f - "$b"
grep '[0-8]: *[1-9][0-9]*:.*// NOTEST$' "$i" |