diff options
Diffstat (limited to 'tool/run_without_tabs.rb')
-rw-r--r-- | tool/run_without_tabs.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tool/run_without_tabs.rb b/tool/run_without_tabs.rb index 54252c5070..cf27f099c7 100644 --- a/tool/run_without_tabs.rb +++ b/tool/run_without_tabs.rb @@ -8,7 +8,12 @@ require 'fileutils' -# These files have no hard tab indentations. Skip normalizing these files. +EXPAND_TARGETS = %w[ + vm*.* + include/ruby/ruby.h +] + +# These files have no hard tab indentations. Skip normalizing these files from the glob result. SKIPPED_FILES = %w[ vm_callinfo.h vm_debug.h @@ -17,7 +22,7 @@ SKIPPED_FILES = %w[ ] srcdir = File.expand_path('..', __dir__) -targets = Dir.glob(File.join(srcdir, 'vm*.*')) - SKIPPED_FILES.map { |f| File.join(srcdir, f) } +targets = EXPAND_TARGETS.flat_map { |t| Dir.glob(File.join(srcdir, t)) } - SKIPPED_FILES.map { |f| File.join(srcdir, f) } sources = {} mtimes = {} |