+2012-12-31 Peter Rosin <peda@lysator.liu.se> (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 <eblake@redhat.com>
dup2: work around cygwin bug
.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; \
# 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")"' \