Browse Source

automake: Prevent `dist` or `distcheck` when uncommitted changes are present

Nikias Bassen 1 year ago
parent
commit
a7f0543fb1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Makefile.am

+ 1 - 0
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