23
# detect if C/C++ files have new trailing white space
24
trailingblank=`echo $BK_FILE | egrep '\.(c|.h)'`
25
if [ -n "$trailingblank" ]
27
trailingblank=`bk diffs $BK_FILE | grep '^> .*[[:space:]]$'`
28
if [ -n "$trailingblank" ]
30
echo "bk diffs $BK_FILE | grep '^> .*[[:space:]]$'"
31
echo "reported white space at end of some added/modified lines"
33
echo "Checkin FAILED!"
34
echo "Fix the problem and retry."