blob: 49c954495286dd1ecdfeafe7e4a809d7dc863000 [file] [log] [blame]
Patrick Williamsf6bd6042020-12-14 15:10:47 -06001#!/bin/bash
William A. Kennington III08baf482021-06-05 12:27:15 -07002cd "$(dirname "$0")" || exit
Patrick Williams05cf6952022-02-17 09:01:55 -06003find . -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
William A. Kennington III08baf482021-06-05 12:27:15 -07004./regenerate-meson || exit
5rc=0
6git --no-pager diff --exit-code -- . || rc=$?
7untracked="$(git ls-files --others --exclude-standard -- .)" || rc=$?
8if [ -n "$untracked" ]; then
9 echo "Untracked files:" >&2
10 echo "$untracked" >&2
11 rc=1
12fi
13if (( rc != 0 )); then
14 echo "Generated meson files differ from expected values" >&2
15 exit 1
Patrick Williamsf6bd6042020-12-14 15:10:47 -060016fi