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