# HG changeset patch # User Peter Rosin # Date 1356732797 -3600 # Node ID 3b0b0f3b01a6c4dc9519b811e612d1b78fb1a0b4 # Parent b0688a78cfafc9ed170f612432c9eb4f26fc471c maint.mk: handle missing git with more grace * top/maint.mk (no-submodule-changes, public-submodule-commit): Quietly proceed if git is not present. Copyright-paperwork-exempt: yes Signed-off-by: Peter Rosin diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-12-31 Peter Rosin (tiny change) + + maint.mk: handle missing git with more grace + * top/maint.mk (no-submodule-changes, public-submodule-commit): + Quietly proceed if git is not present. + 2012-12-31 Eric Blake dup2: work around cygwin bug diff --git a/top/maint.mk b/top/maint.mk --- a/top/maint.mk +++ b/top/maint.mk @@ -1370,7 +1370,8 @@ .PHONY: no-submodule-changes no-submodule-changes: - $(AM_V_GEN)if test -d $(srcdir)/.git; then \ + $(AM_V_GEN)if test -d $(srcdir)/.git \ + && git --version >/dev/null 2>&1; then \ diff=$$(cd $(srcdir) && git submodule -q foreach \ git diff-index --name-only HEAD) \ || exit 1; \ @@ -1388,7 +1389,8 @@ # cannot be built from a fresh clone. .PHONY: public-submodule-commit public-submodule-commit: - $(AM_V_GEN)if test -d $(srcdir)/.git; then \ + $(AM_V_GEN)if test -d $(srcdir)/.git \ + && git --version >/dev/null 2>&1; then \ cd $(srcdir) && \ git submodule --quiet foreach \ test '"$$(git rev-parse "$$sha1")"' \