Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tools/check_make_parser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ if ! cd go/vt/sqlparser/ ; then
fi

mv $CUR $TMP
goyacc -o $CUR sql.y
output=`goyacc -o $CUR sql.y`

if [ -n "$output" ]; then
echo "Expected empty output from goyacc, got:"
echo $output
mv $TMP $CUR
exit 1
fi

gofmt -w $CUR

if ! diff -q $CUR $TMP > /dev/null ; then
Expand Down