From 6925d58ef7994168fb9585aa6f48421149982329 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 16 Apr 2024 16:43:52 +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 c4ed95a..2c15230 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,6 +9,7 @@ EXTRA_DIST = \ DISTCHECK_CONFIGURE_FLAGS = dist-hook: + @if ! git diff --quiet; then echo "Uncommitted changes present; not releasing"; exit 1; fi echo $(VERSION) > $(distdir)/.tarball-version indent: -- cgit v1.1-32-gdbae