summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-04-15 20:07:51 +0200
committerGravatar Nikias Bassen2024-04-15 20:07:51 +0200
commit0d586cd58680d7b1c2eb08aed7eafbf6328d5d1f (patch)
tree7203553282d3a39bd0aa64146dd1b2724438c356
parentfde8946a3988790fd5d3f01fc0a1fd43609ab1d1 (diff)
downloadlibimobiledevice-glue-0d586cd58680d7b1c2eb08aed7eafbf6328d5d1f.tar.gz
libimobiledevice-glue-0d586cd58680d7b1c2eb08aed7eafbf6328d5d1f.tar.bz2
automake: Prevent `dist` or `distcheck` when uncommitted changes are present
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
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: