Alan Wu
4b7c4bb92e
tool/extlibs.rb: Use Exception#message for older rubies
...
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
2022-06-17 18:13:19 -04:00
Nobuyoshi Nakada
1bb9e42fa5
extlibs.rb: Add fallback `Colorize`
...
To get rid of an unnecessary dependency for the case using
in other repositories.
2022-03-24 13:16:13 +09:00
Nobuyoshi Nakada
9ed6875f93
extlibs.rb: Enclose `Vars` in `ExtLibs` class
...
To get rid of an unnecessary top-level constant for the case using
as a library.
2022-03-24 13:16:13 +09:00
Nobuyoshi Nakada
247f8ecfa4
extlibs.rb: Extract ExtLibs#process
...
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.
2022-03-24 13:16:13 +09:00
Takashi Kokubun
fb4195b969
Show a backtrace when tool/extlibs.rb fails
...
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
2021-05-21 23:36:56 -07:00
Nobuyoshi Nakada
eb4319beaf
extlibs.rb: make patch command selectable [ci skip]
...
Some Windows ports fail an assertion on patch files with LF EOL
code. MSys2 patch.exe 2.7.6 seems fine, at least.
2021-01-15 09:37:28 +09:00
Nobuyoshi Nakada
135c6a4b99
fiddle: need to update configure after updating config tools
2020-05-27 00:30:59 +09:00
Nobuyoshi Nakada
0b2fc4cf37
extlibs.rb: make symlink only if the target exists
2020-05-23 14:56:13 +09:00
Nobuyoshi Nakada
336119dfc5
extlibs.rb: fixed Downloader.cache_file call and return value
...
`cache_dir` is an optinal argument but not a keyword argument, and
the return value is a `Pathname`.
2020-05-14 17:19:39 +09:00
Nobuyoshi Nakada
3150b97d32
extlibs.rb: links in extracted directory
...
Allow to create symbolic links (if available) to share same or
updated files.
2020-05-12 15:57:47 +09:00
Nobuyoshi Nakada
d1748484e8
extlibs.rb: added variable references
...
Reduce duplicate parts such as package name and version numbers.
2020-05-12 15:57:47 +09:00
Hiroshi SHIBATA
e8ddbc0239
Put colorize to library directory.
...
Same as 66299e7ca83d379d13abaa5411f3e0419334cabb
2019-07-15 09:40:22 +09:00
Nobuyoshi Nakada
16cb1fb007
extlibs.rb: colorize
...
[ci skip]
2019-06-04 17:09:16 +09:00
kazu
d4ff568d00
Revert "Use `&.` instead of modifier if"
...
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
2018-06-09 16:05:38 +00:00
kazu
53ecd7f3f7
Use `&.` instead of modifier if
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-09 01:55:31 +00:00
nobu
48070cef94
downloader cache
...
* 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
2017-05-21 16:45:35 +00:00
nobu
966bfb07f6
Add sha512
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-22 00:27:14 +00:00
usa
873d62b1e2
Classify extlibs tool
...
* 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
2017-04-07 12:56:35 +00:00
normal
f8d0bdedf1
tool: add descriptions and fix typos
...
* 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
2016-07-02 21:01:04 +00:00
nobu
c23cb3adbe
extlibs.rb: add --cache option
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-01-20 08:14:24 +00:00
nobu
abd5b8e1db
extlibs.rb: patch options
...
* 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
2015-09-09 04:38:58 +00:00
usa
b1186bf39f
* tool/extlibs.rb (do_extract): decompress!
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-23 15:32:37 +00:00
usa
694185bf7f
* tool/extlibs.rb (do_extract): the pipe should be binmode.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-23 15:24:07 +00:00
nobu
e8c22d746b
extlibs.rb: separate commands
...
* 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
2014-12-23 14:14:27 +00:00
nobu
38938ccaad
extlibs.rb: external libraries
...
* 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
2014-12-23 13:24:33 +00:00