summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 02:08:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 02:08:26 +0000
commitd34e50570cece73a0fa53aa12c56b8337241198e (patch)
tree89da4cb141365283da79ad9a64d899fd6cfee980
parente5f0a4b20bc89d46ef61fa8ed4a95159853fed4d (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
-rwxr-xr-xwin32/ifchange.bat9
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