From 617fb573ef9f92a19d6025926e0fbc94472e7197 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 16 Apr 2024 16:43:14 +0200 Subject: automake: Prevent `dist` or `distcheck` when uncommitted changes are present --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 6c48faf..80b0eae 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,6 +7,7 @@ EXTRA_DIST = \ git-version-gen dist-hook: + @if ! git diff --quiet; then echo "Uncommitted changes present; not releasing"; exit 1; fi echo $(VERSION) > $(distdir)/.tarball-version DISTCHECK_CONFIGURE_FLAGS = \ -- cgit v1.1-32-gdbae