[前][次][番号順一覧][スレッド一覧]

ruby-changes:45741

From: nobu <ko1@a...>
Date: Thu, 9 Mar 2017 10:06:16 +0900 (JST)
Subject: [ruby-changes:45741] nobu:r57814 (trunk): make commit [ci skip]

nobu	2017-03-09 10:06:09 +0900 (Thu, 09 Mar 2017)

  New Revision: 57814

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57814

  Log:
    make commit [ci skip]

  Modified files:
    trunk/defs/gmake.mk
Index: defs/gmake.mk
===================================================================
--- defs/gmake.mk	(revision 57813)
+++ defs/gmake.mk	(revision 57814)
@@ -6,7 +6,7 @@ override mflags := $(filter-out -j%,$(MF https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L6
 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/% $(STUBP https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L133
 $(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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]