blob: 874b3a353a7aac7a45ac61b24269345363a44e6f [file] [log] [blame]
William A. Kennington III0a01b2a2021-05-13 18:38:57 -07001#!/bin/bash
2cd "$(dirname "$0")" || exit
3./regenerate-meson || exit
4rc=0
5git --no-pager diff --exit-code -- . || rc=$?
6untracked="$(git ls-files --others --exclude-standard -- .)" || rc=$?
7if [ -n "$untracked" ]; then
Patrick Williamsa4c18d42022-12-08 06:23:26 -06008 echo "Untracked files:" >&2
9 echo "$untracked" >&2
10 rc=1
William A. Kennington III0a01b2a2021-05-13 18:38:57 -070011fi
12if (( rc != 0 )); then
Patrick Williamsa4c18d42022-12-08 06:23:26 -060013 echo "Generated meson files differ from expected values" >&2
14 exit 1
William A. Kennington III0a01b2a2021-05-13 18:38:57 -070015fi