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:
parent
ec31ee25c4
commit
afa9d65d61
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ $packages ||= nil
|
||||||
$digests ||= nil
|
$digests ||= nil
|
||||||
$tooldir = File.expand_path("..", __FILE__)
|
$tooldir = File.expand_path("..", __FILE__)
|
||||||
$unicode_version = nil if ($unicode_version ||= nil) == ""
|
$unicode_version = nil if ($unicode_version ||= nil) == ""
|
||||||
|
$extlibs ||= "no"
|
||||||
$colorize = Colorize.new
|
$colorize = Colorize.new
|
||||||
|
|
||||||
def usage
|
def usage
|
||||||
|
@ -463,7 +464,7 @@ def package(vcs, rev, destdir, tmp = nil)
|
||||||
end
|
end
|
||||||
vars.delete("UNICODE_FILES") # for stable branches
|
vars.delete("UNICODE_FILES") # for stable branches
|
||||||
vars["UNICODE_VERSION"] = $unicode_version if $unicode_version
|
vars["UNICODE_VERSION"] = $unicode_version if $unicode_version
|
||||||
vars["EXTRACT_EXTLIBS"] = ""
|
vars["EXTRACT_EXTLIBS"] = "no" if $extlibs == "no"
|
||||||
args = vars.dup
|
args = vars.dup
|
||||||
mk.gsub!(/@([A-Za-z_]\w*)@/) {args.delete($1); vars[$1] || ENV[$1]}
|
mk.gsub!(/@([A-Za-z_]\w*)@/) {args.delete($1); vars[$1] || ENV[$1]}
|
||||||
mk << commonmk.gsub(/\{\$([^(){}]*)[^{}]*\}/, "").sub(/^revision\.tmp::$/, '\& Makefile')
|
mk << commonmk.gsub(/\{\$([^(){}]*)[^{}]*\}/, "").sub(/^revision\.tmp::$/, '\& Makefile')
|
||||||
|
|
Loading…
Reference in a new issue