From a7f0543fb1ecb20ac7121c0fd77297200e0e43fc Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 16 Apr 2024 16:42:26 +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 5ca15d0..559d84c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,4 +7,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