summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-05-08 16:24:26 +0200
committerSimon Josefsson <simon@josefsson.org>2009-05-08 16:24:26 +0200
commita1d8056ae7f39690f4f94e400db1228cf8ab8891 (patch)
treeb4f38256fce7a99ea53bd74534b897ee37f107bf /maint.mk
parent08c49d6067b908b3ddd403b3f91e990986c51f00 (diff)
downloadgnutls-a1d8056ae7f39690f4f94e400db1228cf8ab8891.tar.gz
Update gnulib files.
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/maint.mk b/maint.mk
index b7f68680ba..fb505181b2 100644
--- a/maint.mk
+++ b/maint.mk
@@ -676,9 +676,22 @@ define emit-commit-log
'* cfg.mk (old_NEWS_hash): Auto-update.'
endef
+.PHONY: no-submodule-changes
+no-submodule-changes:
+ if test -d $(srcdir)/.git; then \
+ diff=$$(cd $(srcdir) && git submodule -q foreach \
+ git diff-index --name-only HEAD) \
+ || exit 1; \
+ case $$diff in '') ;; \
+ *) echo '$(ME): submodule files are locally modified:'; \
+ echo "$$diff"; exit 1;; esac; \
+ else \
+ : ; \
+ fi
+
.PHONY: alpha beta major
ALL_RECURSIVE_TARGETS += alpha beta major
-alpha beta major: $(local-check) writable-files
+alpha beta major: $(local-check) writable-files no-submodule-changes
test $@ = major \
&& { echo $(VERSION) | grep -E '^[0-9]+(\.[0-9]+)+$$' \
|| { echo "invalid version string: $(VERSION)" 1>&2; exit 1;};}\