From c4c7d2339e9ceeeddb9f9465ff5cdd160a6a9358 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 18 May 2024 23:42:00 +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 c86bf42..efaae8e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,4 +8,5 @@ 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 -- cgit v1.1-32-gdbae