ruby-changes:50182
From: nobu <ko1@a...>
Date: Thu, 8 Feb 2018 11:08:31 +0900 (JST)
Subject: [ruby-changes:50182] nobu:r62300 (trunk): ifchange: --debug option
nobu 2018-02-08 11:08:27 +0900 (Thu, 08 Feb 2018) New Revision: 62300 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62300 Log: ifchange: --debug option Modified files: trunk/tool/ifchange trunk/win32/ifchange.bat Index: win32/ifchange.bat =================================================================== --- win32/ifchange.bat (revision 62299) +++ win32/ifchange.bat (revision 62300) @@ -35,6 +35,10 @@ if "%opt%" == "--timestamp" ( https://github.com/ruby/ruby/blob/trunk/win32/ifchange.bat#L35 set color=%opt:~8% shift goto :optloop +) else if "%opt%" == "--debug" ( + shift + echo on + goto :optloop ) if "%opt%" == "" goto :end Index: tool/ifchange =================================================================== --- tool/ifchange (revision 62299) +++ tool/ifchange (revision 62300) @@ -31,6 +31,9 @@ until [ $# -eq 0 ]; do https://github.com/ruby/ruby/blob/trunk/tool/ifchange#L31 --color=*) color=`expr \( "$1" : '[^=]*=\(.*\)' \)` ;; + --debug) + set -x + ;; *) break ;; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/