diff options
| author | David Rodriguez <deivid.rodriguez@riseup.net> | 2024-03-20 16:43:26 +0100 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2024-05-28 13:30:26 -0700 |
| commit | e43393ac0f0376bb831f310de285a4e72837c972 (patch) | |
| tree | 4668811d6966190780c3308a1947ebda36ab12c2 | |
| parent | 6edd65a080b156f1ce78fdcf57214c1644a049db (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 90697bfe92..98d38dc4c1 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -751,11 +751,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 |
