Willam A. Kennington III | ce8d16d | 2022-09-07 15:46:40 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | cd "$(dirname "$0")" || exit |
| 3 | ./regenerate-meson || exit |
| 4 | rc=0 |
| 5 | git --no-pager diff --exit-code -- . || rc=$? |
| 6 | untracked="$(git ls-files --others --exclude-standard -- .)" || rc=$? |
| 7 | if [[ -n "${untracked}" ]]; then |
Patrick Williams | 018b8ff | 2022-12-05 16:03:46 -0600 | [diff] [blame^] | 8 | echo "Untracked files:" >&2 |
| 9 | echo "${untracked}" >&2 |
| 10 | rc=1 |
Willam A. Kennington III | ce8d16d | 2022-09-07 15:46:40 -0700 | [diff] [blame] | 11 | fi |
| 12 | if (( rc != 0 )); then |
Patrick Williams | 018b8ff | 2022-12-05 16:03:46 -0600 | [diff] [blame^] | 13 | echo "Generated meson files differ from expected values" >&2 |
| 14 | exit 1 |
Willam A. Kennington III | ce8d16d | 2022-09-07 15:46:40 -0700 | [diff] [blame] | 15 | fi |