diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-05-08 16:24:26 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-05-08 16:24:26 +0200 |
commit | a1d8056ae7f39690f4f94e400db1228cf8ab8891 (patch) | |
tree | b4f38256fce7a99ea53bd74534b897ee37f107bf /maint.mk | |
parent | 08c49d6067b908b3ddd403b3f91e990986c51f00 (diff) | |
download | gnutls-a1d8056ae7f39690f4f94e400db1228cf8ab8891.tar.gz |
Update gnulib files.
Diffstat (limited to 'maint.mk')
-rw-r--r-- | maint.mk | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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;};}\ |