summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-04 19:24:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-04 19:55:35 +0900
commitafa9d65d61857792508b1405835b07b78e24449c (patch)
treeb1a9c9a52b2cde4ec6cd330b3772382024318a20 /tool
parentec31ee25c40d19b7192212ba7596a52e60519f71 (diff)
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.
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot3
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')