[前][次][番号順一覧][スレッド一覧]

ruby-changes:50181

From: nobu <ko1@a...>
Date: Thu, 8 Feb 2018 11:08:30 +0900 (JST)
Subject: [ruby-changes:50181] nobu:r62299 (trunk): ifchange.bat: --color option

nobu	2018-02-08 11:08:26 +0900 (Thu, 08 Feb 2018)

  New Revision: 62299

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62299

  Log:
    ifchange.bat: --color option
    
    * win32/ifchange.bat: added --color option for the compatibility
      with tool/ifchange.  do nothing right now.

  Modified files:
    trunk/win32/ifchange.bat
Index: win32/ifchange.bat
===================================================================
--- win32/ifchange.bat	(revision 62298)
+++ win32/ifchange.bat	(revision 62299)
@@ -4,6 +4,7 @@ https://github.com/ruby/ruby/blob/trunk/win32/ifchange.bat#L4
 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" ( https://github.com/ruby/ruby/blob/trunk/win32/ifchange.bat#L27
     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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]