1f6bd604fSPatrick Williams#!/bin/bash 208baf48aSWilliam A. Kennington IIIcd "$(dirname "$0")" || exit 3*05cf6954SPatrick Williamsfind . -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \; 408baf48aSWilliam A. Kennington III./regenerate-meson || exit 508baf48aSWilliam A. Kennington IIIrc=0 608baf48aSWilliam A. Kennington IIIgit --no-pager diff --exit-code -- . || rc=$? 708baf48aSWilliam A. Kennington IIIuntracked="$(git ls-files --others --exclude-standard -- .)" || rc=$? 808baf48aSWilliam A. Kennington IIIif [ -n "$untracked" ]; then 908baf48aSWilliam A. Kennington III echo "Untracked files:" >&2 1008baf48aSWilliam A. Kennington III echo "$untracked" >&2 1108baf48aSWilliam A. Kennington III rc=1 1208baf48aSWilliam A. Kennington IIIfi 1308baf48aSWilliam A. Kennington IIIif ((rc != 0)); then 1408baf48aSWilliam A. Kennington III echo "Generated meson files differ from expected values" >&2 15f6bd604fSPatrick Williams exit 1 16f6bd604fSPatrick Williamsfi 17