diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-04 19:24:09 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-04 19:55:35 +0900 |
commit | afa9d65d61857792508b1405835b07b78e24449c (patch) | |
tree | b1a9c9a52b2cde4ec6cd330b3772382024318a20 | |
parent | ec31ee25c40d19b7192212ba7596a52e60519f71 (diff) | |
download | ruby-afa9d65d61857792508b1405835b07b78e24449c.tar.gz |
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.
-rwxr-xr-x | tool/make-snapshot | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index 869eb297b8..b03bb93d18 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -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') |