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

ruby-changes:40126

From: nobu <ko1@a...>
Date: Wed, 21 Oct 2015 16:16:53 +0900 (JST)
Subject: [ruby-changes:40126] nobu:r52207 (trunk): Makefile.in: tty at reconfig

nobu	2015-10-21 16:16:33 +0900 (Wed, 21 Oct 2015)

  New Revision: 52207

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

  Log:
    Makefile.in: tty at reconfig
    
    * aclocal.m4 (_COLORIZE_RESULT_PREPARE): force tty for reconfig.

  Modified files:
    trunk/Makefile.in
    trunk/aclocal.m4
Index: aclocal.m4
===================================================================
--- aclocal.m4	(revision 52206)
+++ aclocal.m4	(revision 52207)
@@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/aclocal.m4#L2
 
 AC_DEFUN([_COLORIZE_RESULT_PREPARE], [
     msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset=
-    AS_IF([test -t 1], [
+    AS_IF([test "x${CONFIGURE_TTY}" = xyes -o -t 1], [
 	msg_begin="`tput smso 2>/dev/null`"
     	AS_CASE(["$msg_begin"], ['@<:@'*m],
 	    [msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`"
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 52206)
+++ Makefile.in	(revision 52207)
@@ -299,7 +299,7 @@ uncommon.mk: $(srcdir)/common.mk https://github.com/ruby/ruby/blob/trunk/Makefile.in#L299
 .PHONY: reconfig
 reconfig-args = $(srcdir)/$(CONFIGURE) $(configure_args)
 config.status-args = ./config.status --recheck
-reconfig-exec-0 = exec 3>&1; exit `exec 4>&1; { "$$@" 3>&- 4>&-; echo $$? 1>&4; } | fgrep -v '(cached)' 1>&3 3>&- 4>&-`
+reconfig-exec-0 = test -t 1 && tty=yes; exec 3>&1; exit `exec 4>&1; { CONFIGURE_TTY=$$tty "$$@" 3>&- 4>&-; echo $$? 1>&4; } | fgrep -v '(cached)' 1>&3 3>&- 4>&-`
 reconfig-exec-1 = set -x; "$$@"
 
 reconfig config.status:	$(srcdir)/$(CONFIGURE) $(srcdir)/enc/Makefile.in \

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

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