Skip to content

Commit

Permalink
Simplify finding sitelibdir
Browse files Browse the repository at this point in the history
This is simpler and also doesn't depend on hardcoded installation paths.
  • Loading branch information
deivid-rodriguez committed Apr 12, 2020
1 parent 62f2298 commit 7f72b9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ install:
- git clone -q --depth=5 --no-tags --branch=byebug https://github.com/deivid-rodriguez/rb-readline.git C:\rb-readline

- ps: $env:ruby_abi_vers = (&ruby.exe -e "puts RbConfig::CONFIG['ruby_version']" | Out-String).Trim()
- set n_dir=C:\Ruby%ruby_version%\lib\ruby\site_ruby\%ruby_abi_vers%
- ps: $env:n_dir = (&ruby.exe -e "puts RbConfig::CONFIG['sitelibdir']" | Out-String).Trim()
- copy C:\rb-readline\lib\readline.rb %n_dir%\readline.rb
- copy C:\rb-readline\lib\rbreadline.rb %n_dir%\rbreadline.rb

Expand Down

0 comments on commit 7f72b9b

Please sign in to comment.