From afa9d65d61857792508b1405835b07b78e24449c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 4 Jan 2021 19:24:09 +0900 Subject: [PATCH] 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. --- tool/make-snapshot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')