summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-05-18 23:42:00 +0200
committerGravatar Nikias Bassen2024-05-18 23:42:00 +0200
commitc4c7d2339e9ceeeddb9f9465ff5cdd160a6a9358 (patch)
tree51884fa47399a1a9de0d2c01c3a2a63c0018f3f7
parent653349a1eac8c52776dcfd17cb82bbeac272fb71 (diff)
downloadidevicerestore-c4c7d2339e9ceeeddb9f9465ff5cdd160a6a9358.tar.gz
idevicerestore-c4c7d2339e9ceeeddb9f9465ff5cdd160a6a9358.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 c86bf42..efaae8e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,4 +8,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