1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

make-snapshot: add -extlibs option

`make-snapshot` with `-extlibs` (or `-extlibs=yes`) includes
extracted and patched external library sources that the extension
libraries depend on.
This commit is contained in:
Nobuyoshi Nakada 2021-01-04 19:24:09 +09:00
parent ec31ee25c4
commit afa9d65d61
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -21,6 +21,7 @@ $packages ||= nil
$digests ||= nil
$tooldir = File.expand_path("..", __FILE__)
$unicode_version = nil if ($unicode_version ||= nil) == ""
$extlibs ||= "no"
$colorize = Colorize.new
def usage
@ -463,7 +464,7 @@ def package(vcs, rev, destdir, tmp = nil)
end
vars.delete("UNICODE_FILES") # for stable branches
vars["UNICODE_VERSION"] = $unicode_version if $unicode_version
vars["EXTRACT_EXTLIBS"] = ""
vars["EXTRACT_EXTLIBS"] = "no" if $extlibs == "no"
args = vars.dup
mk.gsub!(/@([A-Za-z_]\w*)@/) {args.delete($1); vars[$1] || ENV[$1]}
mk << commonmk.gsub(/\{\$([^(){}]*)[^{}]*\}/, "").sub(/^revision\.tmp::$/, '\& Makefile')