diff options
author | Jim Meyering <meyering@redhat.com> | 2011-01-20 11:50:53 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-01-20 12:33:58 +0100 |
commit | 10a2340451a5dc1ff5972183fafd81de246c6931 (patch) | |
tree | 51b14e79597b720dffde666779837ea6dcd96f68 /top | |
parent | 45403530bfcddf904e886efb18be488e781b77d1 (diff) | |
download | gnulib-10a2340451a5dc1ff5972183fafd81de246c6931.tar.gz |
maint.mk: improve the public-submodule-commit rule
* top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
to suppress printing of its commands... unless V=1.
Add git submodule's --quiet option to suppress printing of e.g.,
"Entering gnulib" output.
"cd" into $(srcdir) before running git submodule.
Diffstat (limited to 'top')
-rw-r--r-- | top/maint.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/top/maint.mk b/top/maint.mk index ae280f6485..25f4736a3b 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -1125,8 +1125,9 @@ submodule-checks ?= no-submodule-changes public-submodule-commit # cannot be built from a fresh clone. .PHONY: public-submodule-commit public-submodule-commit: - if test -d $(srcdir)/.git; then \ - git submodule foreach 'test $$(git rev-parse origin)' \ + $(AM_V_GEN)if test -d $(srcdir)/.git; then \ + cd $(srcdir) && \ + git submodule --quiet foreach 'test $$(git rev-parse origin)' \ = '"$$(git merge-base --independent origin $$sha1)"' \ || { echo '$(ME): found non-public submodule commit' >&2; \ exit 1; }; \ |