automake: Prevent dist or distcheck when uncommitted changes are present

This commit is contained in:
Nikias Bassen
2024-04-16 16:42:26 +02:00
parent bb6a786b67
commit a7f0543fb1
+1
View File
@@ -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