summaryrefslogtreecommitdiff
path: root/defs
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-09 01:06:09 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-09 01:06:09 (GMT)
commit2ebc44656f902412a950c5236abec56140f1aa5c (patch)
treed13fd99adcdf1278b27dda627931ffd0dfe2ee5c /defs
parente064879e5ad2c4534d3ca4fc5eda045ee32d7c34 (diff)
make commit [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defs')
-rw-r--r--defs/gmake.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk
index 9bba693..a6794fa 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -6,7 +6,7 @@ override mflags := $(filter-out -j%,$(MFLAGS))
CHECK_TARGETS := great exam love check test check% test% btest%
# expand test targets, and those dependents
TEST_TARGETS := $(filter $(CHECK_TARGETS),$(MAKECMDGOALS))
-TEST_DEPENDS := $(filter-out $(TEST_TARGETS),$(MAKECMDGOALS))
+TEST_DEPENDS := $(filter-out commit $(TEST_TARGETS),$(MAKECMDGOALS))
TEST_TARGETS := $(patsubst great,exam,$(TEST_TARGETS))
TEST_DEPENDS := $(filter-out great $(TEST_TARGETS),$(TEST_DEPENDS))
TEST_TARGETS := $(patsubst exam,check test-rubyspec,$(TEST_TARGETS))
@@ -133,3 +133,17 @@ $(SCRIPTBINDIR)%$(EXEEXT): bin/% $(STUBPROGRAM) \
$(TIMESTAMPDIR)/.exec.time:
$(Q) mkdir exec
$(Q) exit > $@
+
+ifneq (,)
+else ifeq ($(VCS),svn)
+VCSCOMMIT = $(VCS) commit $(SVNCOMMITOPTIONS)
+else ifeq ($(VCS),git svn)
+VCSCOMMIT = $(VCS) dcommit $(GITSVNCOMMITOPTIONS)
+else ifeq ($(VCS),git)
+VCSCOMMIT := $(VCS) push $(GITCOMMITOPTIONS)
+endif
+ifneq ($(VCSCOMMIT),)
+.PHONY: commit
+commit: $(if $(filter commit,$(MAKECMDGOALS)),$(filter-out commit,$(MAKECMDGOALS)))
+ @$(CHDIR) "$(srcdir)" && LC_TIME=C exec $(VCSCOMMIT)
+endif