From 0d586cd58680d7b1c2eb08aed7eafbf6328d5d1f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 15 Apr 2024 20:07:51 +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 2c38d53..96d3c7b 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 indent: -- cgit v1.1-32-gdbae