Issue #15581 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Assigned to Rejected

I gave up to organize this. I try to write test files under the tool directory.

----------------------------------------
Feature #15581: Split tool/* files to tool and script directories
https://bugs.ruby-lang.org/issues/15581#change-79417

* Author: hsbt (Hiroshi SHIBATA)
* Status: Rejected
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
----------------------------------------
We use the tool directory for additional scripts like a utility, generator and etc. 

But some files are required by `make` and `make install`. I think they are not the additional scripts, so It's the core toolchain.

I found the minimum requirements for `autoconf`, `configure`, `make`, `make install`, `make dist`.

```
autoconf

    tool/m4/ruby_mingw32.m4
    tool/m4/ac_msg_result.m4
    tool/m4/ruby_func_attribute.m4
    tool/m4/_colorize_result_prepare.m4
    tool/m4/ruby_rm_recursive.m4
    tool/m4/ruby_setjmp_type.m4
    tool/m4/ruby_replace_type.m4
    tool/m4/ruby_prepend_option.m4
    tool/m4/ruby_default_arch.m4
    tool/m4/ruby_check_builtin_func.m4
    tool/m4/ruby_cppoutfile.m4
    tool/m4/ruby_dtrace_postprocess.m4
    tool/m4/ruby_append_option.m4
    tool/m4/ruby_try_cflags.m4
    tool/m4/ruby_check_builtin_setjmp.m4
    tool/m4/ruby_check_signedness.m4
    tool/m4/ruby_defint.m4
    tool/m4/ruby_universal_arch.m4
    tool/m4/ruby_prog_gnu_ld.m4
    tool/m4/ruby_check_printf_prefix.m4
    tool/m4/ruby_werror_flag.m4
    tool/m4/ruby_check_sysconf.m4
    tool/m4/ruby_try_ldflags.m4
    tool/m4/ruby_stack_grow_direction.m4
    tool/m4/ruby_dtrace_available.m4
    tool/m4/ruby_decl_attribute.m4
    tool/m4/ruby_check_sizeof.m4
    tool/m4/ruby_type_attribute.m4
    tool/m4/colorize_result.m4
    tool/m4/ruby_define_if.m4
    tool/m4/ruby_append_options.m4
    tool/m4/ruby_check_setjmp.m4

configure

    tool/install-sh
    tool/config.guess
    tool/ifchange
    tool/config.sub
    tool/downloader.rb

make

    tool/transcode-tblgen.rb
    tool/gen_dummy_probes.rb
    tool/id2token.rb
    tool/mk_call_iseq_optimized.rb
    tool/colorize.rb
    tool/vcs.rb
    tool/ruby_vm/models/instructions_unifications.rb
    tool/ruby_vm/models/typemap.rb
    tool/ruby_vm/models/trace_instructions.rb
    tool/ruby_vm/models/bare_instructions.rb
    tool/ruby_vm/models/c_expr.rb
    tool/ruby_vm/models/operands_unifications.rb
    tool/ruby_vm/models/instructions.rb
    tool/ruby_vm/models/attribute.rb
    tool/ruby_vm/scripts/insns2vm.rb
    tool/ruby_vm/controllers/application_controller.rb
    tool/ruby_vm/views/_insn_entry.erb
    tool/ruby_vm/views/_insn_name_info.erb
    tool/ruby_vm/views/vm.inc.erb
    tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb
    tool/ruby_vm/views/opt_sc.inc.erb
    tool/ruby_vm/views/_insn_operand_info.erb
    tool/ruby_vm/views/vmtc.inc.erb
    tool/ruby_vm/views/_sp_inc_helpers.erb
    tool/ruby_vm/views/_mjit_compile_insn.erb
    tool/ruby_vm/views/mjit_compile.inc.erb
    tool/ruby_vm/views/insns.inc.erb
    tool/ruby_vm/views/_insn_stack_increase.erb
    tool/ruby_vm/views/_c_expr.erb
    tool/ruby_vm/views/_notice.erb
    tool/ruby_vm/views/insns_info.inc.erb
    tool/ruby_vm/views/_attributes.erb
    tool/ruby_vm/views/_copyright.erb
    tool/ruby_vm/views/_mjit_compile_ivar.erb
    tool/ruby_vm/views/_leaf_helpers.erb
    tool/ruby_vm/views/optunifs.inc.erb
    tool/ruby_vm/views/_trace_instruction.erb
    tool/ruby_vm/views/_mjit_compile_send.erb
    tool/ruby_vm/views/_insn_len_info.erb
    tool/ruby_vm/views/_mjit_compile_insn_body.erb
    tool/ruby_vm/views/_insn_type_chars.erb
    tool/ruby_vm/views/optinsn.inc.erb
    tool/ruby_vm/loaders/vm_opts_h.rb
    tool/ruby_vm/loaders/insns_def.rb
    tool/ruby_vm/loaders/opt_insn_unif_def.rb
    tool/ruby_vm/loaders/opt_operand_def.rb
    tool/ruby_vm/helpers/c_escape.rb
    tool/ruby_vm/helpers/dumper.rb
    tool/ruby_vm/helpers/scanner.rb
    tool/vpath.rb
    tool/file2lastrev.rb
    tool/config.sub
    tool/ytab.sed
    tool/insns2vm.rb
    tool/mjit_archflag.sh
    tool/node_name.rb
    tool/generic_erb.rb
    tool/transform_mjit_header.rb
    tool/mkconfig.rb
    tool/runruby.rb

make install

    tool/rbinstall.rb
    tool/fake.rb

make dist

    tool/make-snapshot
    tool/prereq.status
```

How about split tool/* to script/* without the above files?



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>