You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
353 B

#!/bin/sh
# now we have -q optiuon
#find . -name '*.xml' | xargs ~/bin-build/XMLValidator 2>&1 | tee validate.log | fgrep -v 'Processing file '
XMLValidator -q seed common 2>&1 | tee validate.log
fgrep -q 'Exception in thread' validate.log && exit 1
fgrep -q ERROR validate.log || exit 0
echo `fgrep -c ERROR validate.log` errors. >&2
exit 1