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

Do not include external library sources into packages

This commit is contained in:
Nobuyoshi Nakada 2020-12-27 20:33:20 +09:00
parent f6a080047e
commit a042043487
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 3 additions and 1 deletions

View file

@ -1282,8 +1282,9 @@ up::
yes::
no::
EXTRACT_EXTLIBS = extract-extlibs
after-update:: $(REVISION_H)
after-update:: extract-extlibs
after-update:: $(EXTRACT_EXTLIBS)
after-update:: extract-gems
update-remote:: update-src update-download

View file

@ -463,6 +463,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"] = ""
args = vars.dup
mk.gsub!(/@([A-Za-z_]\w*)@/) {args.delete($1); vars[$1] || ENV[$1]}
mk << commonmk.gsub(/\{\$([^(){}]*)[^{}]*\}/, "").sub(/^revision\.tmp::$/, '\& Makefile')