blob: d38927a194308f05a1ca554db15dde3ff5bc6cbd [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
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
8 echo "Untracked files:" >&2
9 echo "$untracked" >&2
10 rc=1
11fi
12if (( rc != 0 )); then
13 echo "Generated meson files differ from expected values" >&2
14 exit 1
Patrick Williamsf6bd6042020-12-14 15:10:47 -060015fi