From d34e50570cece73a0fa53aa12c56b8337241198e Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 8 Feb 2018 02:08:26 +0000 Subject: ifchange.bat: --color option * win32/ifchange.bat: added --color option for the compatibility with tool/ifchange. do nothing right now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/ifchange.bat | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'win32') diff --git a/win32/ifchange.bat b/win32/ifchange.bat index c95203181a..f7ed58ffa5 100755 --- a/win32/ifchange.bat +++ b/win32/ifchange.bat @@ -4,6 +4,7 @@ set timestamp= set keepsuffix= set empty= +set color=auto :optloop for %%I in (%1) do set opt=%%~I if "%opt%" == "--timestamp" ( @@ -26,6 +27,14 @@ if "%opt%" == "--timestamp" ( set empty=yes shift goto :optloop +) else if "%opt%" == "--color" ( + set color=always + shift + goto :optloop +) else if "%opt:~0,8%" == "--color=" ( + set color=%opt:~8% + shift + goto :optloop ) if "%opt%" == "" goto :end -- cgit v1.2.3