1*ce8d16d9SWillam A. Kennington III#!/bin/bash 2*ce8d16d9SWillam A. Kennington IIIcd "$(dirname "$0")" || exit 3*ce8d16d9SWillam A. Kennington III./regenerate-meson || exit 4*ce8d16d9SWillam A. Kennington IIIrc=0 5*ce8d16d9SWillam A. Kennington IIIgit --no-pager diff --exit-code -- . || rc=$? 6*ce8d16d9SWillam A. Kennington IIIuntracked="$(git ls-files --others --exclude-standard -- .)" || rc=$? 7*ce8d16d9SWillam A. Kennington IIIif [[ -n "${untracked}" ]]; then 8*ce8d16d9SWillam A. Kennington III echo "Untracked files:" >&2 9*ce8d16d9SWillam A. Kennington III echo "${untracked}" >&2 10*ce8d16d9SWillam A. Kennington III rc=1 11*ce8d16d9SWillam A. Kennington IIIfi 12*ce8d16d9SWillam A. Kennington IIIif (( rc != 0 )); then 13*ce8d16d9SWillam A. Kennington III echo "Generated meson files differ from expected values" >&2 14*ce8d16d9SWillam A. Kennington III exit 1 15*ce8d16d9SWillam A. Kennington IIIfi 16