1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Show include directive differences only when under git

When building from tarballs, the source directory is not a git
repository.
This commit is contained in:
Nobuyoshi Nakada 2019-11-23 16:00:39 +09:00
parent 9318e1ff3e
commit b563439274
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -723,7 +723,9 @@ clean-spec: PHONY
check: main test test-tool test-all test-spec
$(ECHO) check succeeded
- $(GIT) --no-pager -C "$(srcdir)" log --format=oneline -G "^ *# *include" origin/master..HEAD
-$(Q) if [ x"$(GIT)" != x ] && $(CHDIR) "$(srcdir)" && $(GIT) rev-parse > /dev/null 2>&1; then \
set -x; $(GIT) --no-pager log --format=oneline -G "^ *# *include" origin/master..HEAD; \
fi
check-ruby: test test-ruby
fake: $(CROSS_COMPILING)-fake