blob: cedfc66c9e21b8ef1aab139975360825ff2c0d16 [file] [log] [blame]
Willam A. Kennington IIIce8d16d2022-09-07 15:46:40 -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 Williams018b8ff2022-12-05 16:03:46 -06008 echo "Untracked files:" >&2
9 echo "${untracked}" >&2
10 rc=1
Willam A. Kennington IIIce8d16d2022-09-07 15:46:40 -070011fi
12if (( rc != 0 )); then
Patrick Williams018b8ff2022-12-05 16:03:46 -060013 echo "Generated meson files differ from expected values" >&2
14 exit 1
Willam A. Kennington IIIce8d16d2022-09-07 15:46:40 -070015fi