summaryrefslogtreecommitdiff
path: root/tool/extlibs.rb
Commit message (Collapse)AuthorAgeFilesLines
* Prefer to use File.foreach instead of IO.foreachHiroshi SHIBATA2023-02-271-1/+1
|
* tool/extlibs.rb: Use Exception#message for older rubiesAlan Wu2022-06-171-1/+1
| | | | | | | | This script runs with BASERUBY, which can be as old as 2.2.x. Exception#full_message is new in 2.5.0. I saw a NoMethodError on the AppVeyor CI where BASERUBY is 2.4.6: https://ci.appveyor.com/project/ruby/ruby/builds/43870654/job/kae4uo2xbhuhqmdw#L121
* extlibs.rb: Add fallback `Colorize`Nobuyoshi Nakada2022-03-241-1/+11
| | | | | To get rid of an unnecessary dependency for the case using in other repositories.
* extlibs.rb: Enclose `Vars` in `ExtLibs` classNobuyoshi Nakada2022-03-241-11/+11
| | | | | To get rid of an unnecessary top-level constant for the case using as a library.
* extlibs.rb: Extract ExtLibs#processNobuyoshi Nakada2022-03-241-66/+78
| | | | | | | | | For the case using this script as a library. - `ExtLibs#process` reads and processes an extlibs file. - `ExtLibs#process_under` processes all extlibs files under the given directory. - `Extlibs.run` parses `ARGV` and lets an instance process the directories.
* Show a backtrace when tool/extlibs.rb failsTakashi Kokubun2021-05-211-1/+1
| | | | | | I'd like to retry this kind of error, but showing no backtrace is hard to deal with. https://github.com/ruby/ruby/runs/2644908002
* extlibs.rb: make patch command selectable [ci skip]Nobuyoshi Nakada2021-01-151-1/+1
| | | | | Some Windows ports fail an assertion on patch files with LF EOL code. MSys2 patch.exe 2.7.6 seems fine, at least.
* fiddle: need to update configure after updating config toolsNobuyoshi Nakada2020-05-271-0/+16
|
* extlibs.rb: make symlink only if the target existsNobuyoshi Nakada2020-05-231-0/+1
|
* extlibs.rb: fixed Downloader.cache_file call and return valueNobuyoshi Nakada2020-05-141-1/+1
| | | | | `cache_dir` is an optinal argument but not a keyword argument, and the return value is a `Pathname`.
* extlibs.rb: links in extracted directoryNobuyoshi Nakada2020-05-121-0/+36
| | | | | Allow to create symbolic links (if available) to share same or updated files.
* extlibs.rb: added variable referencesNobuyoshi Nakada2020-05-121-2/+25
| | | | Reduce duplicate parts such as package name and version numbers.
* Put colorize to library directory.Hiroshi SHIBATA2019-07-151-1/+1
| | | | Same as 66299e7ca83d379d13abaa5411f3e0419334cabb
* extlibs.rb: colorizeNobuyoshi Nakada2019-06-041-10/+11
| | | | [ci skip]
* Revert "Use `&.` instead of modifier if"kazu2018-06-091-1/+1
| | | | | | | | This reverts commit 9d015aa91cc3ec45e41be58fd836fb7f6655a624. Because tool/extlibs.rb runs with BASERUBY that may be ruby < 2.3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use `&.` instead of modifier ifkazu2018-06-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader cachenobu2017-05-211-12/+14
| | | | | | * tool/downloader.rb (Downloader.download): manage download cache. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add sha512nobu2017-04-221-2/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Classify extlibs toolusa2017-04-071-123/+141
| | | | | | | * tool/extlibs.rb (ExtLibs): classify the tool to make it able to reuse it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool: add descriptions and fix typosnormal2016-07-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tool/asm_parse.rb: add description * tool/change_maker.rb: ditto * tool/downloader.rb: ditto * tool/eval.rb: ditto * tool/expand-config.rb: ditto * tool/extlibs.rb: ditto * tool/fake.rb: ditto * tool/file2lastrev.rb: ditto * tool/gem-unpack.rb: ditto * tool/gen_dummy_probes.rb: ditto * tool/gen_ruby_tapset.rb: ditto * tool/generic_erb.rb: ditto * tool/id2token.rb: ditto * tool/ifchange: ditto * tool/insns2vm.rb: ditto * tool/instruction.rb: ditto * tool/jisx0208.rb: ditto * tool/merger.rb: ditto * tool/mkrunnable.rb: ditto * tool/node_name.rb: ditto * tool/parse.rb: ditto * tool/rbinstall.rb: ditto * tool/rbuninstall.rb: ditto * tool/rmdirs: ditto * tool/runruby.rb: ditto * tool/strip-rdoc.rb: ditto * tool/vcs.rb: ditto * tool/vtlh.rb: ditto * tool/ytab.sed: ditto * tool/enc-unicode.rb: fix typo * tool/mk_call_iseq_optimized.rb: ditto * tool/update-deps: ditto [ruby-core:76215] [Bug #12539] by Noah Gibbs <the.codefolio.guy@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* extlibs.rb: add --cache optionnobu2016-01-201-17/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* extlibs.rb: patch optionsnobu2015-09-091-1/+1
| | | | | | | | | * tool/extlibs.rb (do_patch): let "patch" command change the working directory and open the patch file there, instead of spawn options, so that proper error message will be shown by the command not just "chdir" or "open". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/extlibs.rb (do_extract): decompress!usa2014-12-231-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/extlibs.rb (do_extract): the pipe should be binmode.usa2014-12-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* extlibs.rb: separate commandsnobu2014-12-231-1/+24
| | | | | | | * tool/extlibs.rb (do_extract): separate expansion and extraction processes to each commands. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* extlibs.rb: external librariesnobu2014-12-231-0/+120
* tool/extlibs.rb: download, extract, and patch external libraries. * ext/fiddle/extlibs: libffi-3.2.1 and patch for mswin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e