summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/ifchange.bat9
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/ifchange.bat b/win32/ifchange.bat
index c95203181a0..f7ed58ffa5d 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