diff options
| author | David Rodriguez <deivid.rodriguez@riseup.net> | 2024-03-20 16:43:26 +0100 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-03-25 11:55:08 +0900 |
| commit | 348d8bdb0edeb4df2ef40379ab579dfc15afc327 (patch) | |
| tree | 9a0f457618afb14eb5fae83f8173d857f00cd106 | |
| parent | fdd7ffb70ca6e9f7d790aadde86dbc8172e19f4d (diff) | |
Use `$ext_build_dir` consistently
Instead of hardcoded "ext".
| -rwxr-xr-x | tool/rbinstall.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 2faaece8c9..3a36777420 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -555,11 +555,17 @@ module RbInstall class Ext < self def skip_install?(files) # install ext only when it's configured - !File.exist?("#{$ext_build_dir}/#{relative_base}/Makefile") + !File.exist?("#{makefile_dir}/Makefile") end def ruby_libraries - Dir.glob("lib/**/*.rb", base: "#{srcdir}/ext/#{relative_base}") + Dir.glob("lib/**/*.rb", base: makefile_dir) + end + + private + + def makefile_dir + File.expand_path("#{$ext_build_dir}/#{relative_base}", srcdir) end end |
