aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-03-23 22:31:38 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2020-03-23 22:33:01 -0700
commit5b3157a51177b56fd79d4f4e3cb08e0a6459944f (patch)
treed8161051c4e3d4e8a698cb7e400cd62194280d80 /tool
parent6ab3664635aae9c35c207fb570e14740d8383444 (diff)
downloadruby-5b3157a51177b56fd79d4f4e3cb08e0a6459944f.tar.gz
Make file names and variable names consistent
Diffstat (limited to 'tool')
-rw-r--r--tool/mjit_tabs.rb (renamed from tool/mjit_without_tabs.rb)8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/mjit_without_tabs.rb b/tool/mjit_tabs.rb
index bc2ca773d5..8b91af2479 100644
--- a/tool/mjit_without_tabs.rb
+++ b/tool/mjit_tabs.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
# This is a script to run a command in ARGV, expanding tabs in some files
-# included by vm.c to normalize indentation of MJIT header. You can disable
-# this feature by setting MJIT_WITHOUT_TABS=false make variable.
+# included by vm.c to normalize indentation of MJIT header. You can enable
+# this feature by passing `--without-mjit-tabs` in configure.
#
# Note that preprocessor of GCC converts a hard tab to one spaces, where
# we expect it to be shown as 8 spaces. To obviate this script, we need
@@ -27,10 +27,10 @@ targets = EXPAND_TARGETS.flat_map { |t| Dir.glob(File.join(srcdir, t)) } - SKIPP
sources = {}
mtimes = {}
-flag, *command = ARGV
+mjit_tabs, *command = ARGV
targets.each do |target|
- next if flag != 'true'
+ next if mjit_tabs != 'false'
unless File.writable?(target)
puts "tool/mjit_without_tabs.rb: Skipping #{target.dump} as it's not writable."
next