summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 02:08:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 02:08:27 +0000
commit4695019a1cb71288462edf3fdb9c4dac2958a324 (patch)
tree10b2ff9ed4161ca3400624ce32aa6ab8e125ab3f
parentd34e50570cece73a0fa53aa12c56b8337241198e (diff)
ifchange: --debug option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-xtool/ifchange3
-rwxr-xr-xwin32/ifchange.bat4
2 files changed, 7 insertions, 0 deletions
diff --git a/tool/ifchange b/tool/ifchange
index 396a7a0bcf4..050c8d8f266 100755
--- a/tool/ifchange
+++ b/tool/ifchange
@@ -31,6 +31,9 @@ until [ $# -eq 0 ]; do
--color=*)
color=`expr \( "$1" : '[^=]*=\(.*\)' \)`
;;
+ --debug)
+ set -x
+ ;;
*)
break
;;
diff --git a/win32/ifchange.bat b/win32/ifchange.bat
index f7ed58ffa5d..606d6ed66ea 100755
--- a/win32/ifchange.bat
+++ b/win32/ifchange.bat
@@ -35,6 +35,10 @@ if "%opt%" == "--timestamp" (
set color=%opt:~8%
shift
goto :optloop
+) else if "%opt%" == "--debug" (
+ shift
+ echo on
+ goto :optloop
)
if "%opt%" == "" goto :end