diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-25 07:44:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-25 07:44:58 +0000 |
commit | 8d4321346722326acb2bb87e9cc7ea2a3af6c355 (patch) | |
tree | 63a6994c989bd6991ba76113473a6d279eafb8c7 /tool/make-snapshot | |
parent | cfa98ab2eb845e22f8fdc34ef32d0cc67e6a586e (diff) |
make-snapshot: override rest variables
* tool/make-snapshot (package): override variables which are not
substituted by the command line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index b583efca08..865fdeb965 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -308,7 +308,8 @@ def package(vcs, rev, destdir, tmp = nil) "PWD"=>Dir.pwd, "CONFIGURE"=>"configure", } - mk.gsub!(/@([A-Za-z_]\w*)@/) {vars[$1] || ENV[$1]} + args = vars.dup + mk.gsub!(/@([A-Za-z_]\w*)@/) {args.delete($1); vars[$1] || ENV[$1]} mk << commonmk.gsub(/(?<!#)\{[^{}]*\}/, "") mk << <<-'APPEND' @@ -320,7 +321,7 @@ extract-gems: open(clean.add("Makefile"), "w") do |f| f.puts mk end - system("make", "prereq") + system("make", "prereq", *args.map {|arg| arg.join("=")}) clean.push("rbconfig.rb", ".rbconfig.time", "enc.mk") print "prerequisites" else |