diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-08 02:08:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-08 02:08:26 +0000 |
commit | d34e50570cece73a0fa53aa12c56b8337241198e (patch) | |
tree | 89da4cb141365283da79ad9a64d899fd6cfee980 /win32/ifchange.bat | |
parent | e5f0a4b20bc89d46ef61fa8ed4a95159853fed4d (diff) |
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
Diffstat (limited to 'win32/ifchange.bat')
-rwxr-xr-x | win32/ifchange.bat | 9 |
1 files changed, 9 insertions, 0 deletions
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
|