Really ignore errors from the "fixme" test
This commit is contained in:
parent
2907b8e98b
commit
3622d4e423
|
@ -41,7 +41,7 @@ TR="tr"
|
||||||
#fixme
|
#fixme
|
||||||
_fixme()
|
_fixme()
|
||||||
{
|
{
|
||||||
ret=0
|
res=0
|
||||||
|
|
||||||
$DATE
|
$DATE
|
||||||
echo
|
echo
|
||||||
|
@ -81,40 +81,40 @@ _fixme()
|
||||||
($callback "$filename") 2>&1
|
($callback "$filename") 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "$PROGNAME: $filename: FAIL" 1>&2
|
echo "$PROGNAME: $filename: FAIL" 1>&2
|
||||||
ret=2
|
res=2
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
return $ret
|
return $res
|
||||||
}
|
}
|
||||||
|
|
||||||
_fixme_asm()
|
_fixme_asm()
|
||||||
{
|
{
|
||||||
ret=0
|
res=0
|
||||||
filename="$1"
|
filename="$1"
|
||||||
|
|
||||||
#warnings
|
#warnings
|
||||||
$GREP -nH '/\*.*\(TODO\|XXX\)' "$filename"
|
$GREP -nH '/\*.*\(TODO\|XXX\)' "$filename"
|
||||||
#failures
|
#failures
|
||||||
$GREP -nH '/\*.*FIXME' "$filename" && ret=2
|
$GREP -nH '/\*.*FIXME' "$filename" && res=2
|
||||||
return $ret
|
return $res
|
||||||
}
|
}
|
||||||
|
|
||||||
_fixme_c()
|
_fixme_c()
|
||||||
{
|
{
|
||||||
ret=0
|
res=0
|
||||||
filename="$1"
|
filename="$1"
|
||||||
|
|
||||||
#warnings
|
#warnings
|
||||||
$GREP -nH '/\(/\|\*\).*\(TODO\|XXX\)' "$filename"
|
$GREP -nH '/\(/\|\*\).*\(TODO\|XXX\)' "$filename"
|
||||||
#failures
|
#failures
|
||||||
$GREP -nH '/\(/\|\*\).*FIXME' "$filename" && ret=2
|
$GREP -nH '/\(/\|\*\).*FIXME' "$filename" && res=2
|
||||||
return $ret
|
return $res
|
||||||
}
|
}
|
||||||
|
|
||||||
_fixme_sh()
|
_fixme_sh()
|
||||||
{
|
{
|
||||||
ret=0
|
res=0
|
||||||
filename="$1"
|
filename="$1"
|
||||||
#XXX avoid matching the regexp
|
#XXX avoid matching the regexp
|
||||||
comment="#"
|
comment="#"
|
||||||
|
@ -122,21 +122,21 @@ _fixme_sh()
|
||||||
#warnings
|
#warnings
|
||||||
$GREP -nH "$comment.*\\(TODO\\|XXX\\)" "$filename"
|
$GREP -nH "$comment.*\\(TODO\\|XXX\\)" "$filename"
|
||||||
#failures
|
#failures
|
||||||
$GREP -nH "$comment.*FIXME" "$filename" && ret=2
|
$GREP -nH "$comment.*FIXME" "$filename" && res=2
|
||||||
return $ret
|
return $res
|
||||||
}
|
}
|
||||||
|
|
||||||
_fixme_xml()
|
_fixme_xml()
|
||||||
{
|
{
|
||||||
ret=0
|
res=0
|
||||||
filename="$1"
|
filename="$1"
|
||||||
|
|
||||||
#XXX limited to a single line
|
#XXX limited to a single line
|
||||||
#warnings
|
#warnings
|
||||||
$GREP -nH '<!--.*\(TODO\|XXX\)' "$filename"
|
$GREP -nH '<!--.*\(TODO\|XXX\)' "$filename"
|
||||||
#failures
|
#failures
|
||||||
$GREP -nH '<!--.*FIXME' "$filename" && ret=2
|
$GREP -nH '<!--.*FIXME' "$filename" && res=2
|
||||||
return $ret
|
return $res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -189,6 +189,7 @@ fi
|
||||||
[ $clean -ne 0 ] && exit 0
|
[ $clean -ne 0 ] && exit 0
|
||||||
|
|
||||||
exec 3>&1
|
exec 3>&1
|
||||||
|
ret=0
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
target="$1"
|
target="$1"
|
||||||
dirname="${target%/*}"
|
dirname="${target%/*}"
|
||||||
|
@ -197,7 +198,8 @@ while [ $# -gt 0 ]; do
|
||||||
if [ -n "$dirname" -a "$dirname" != "$target" ]; then
|
if [ -n "$dirname" -a "$dirname" != "$target" ]; then
|
||||||
$MKDIR -- "$dirname" || ret=$?
|
$MKDIR -- "$dirname" || ret=$?
|
||||||
fi
|
fi
|
||||||
_fixme > "$target" || exit 2
|
_fixme > "$target" || ret=$?
|
||||||
done
|
done
|
||||||
#XXX ignore errors
|
#XXX ignore errors
|
||||||
exit 0
|
ret=0
|
||||||
|
exit $ret
|
||||||
|
|
Loading…
Reference in New Issue
Block a user