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

Get rid of overwriting revision.h and creating .revision.time

This commit is contained in:
Nobuyoshi Nakada 2019-09-07 11:33:26 +09:00
parent 5118aa2d58
commit d783609ac3
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -437,7 +437,7 @@ def package(vcs, rev, destdir, tmp = nil)
vars["UNICODE_VERSION"] = $unicode_version if $unicode_version
args = vars.dup
mk.gsub!(/@([A-Za-z_]\w*)@/) {args.delete($1); vars[$1] || ENV[$1]}
mk << commonmk.gsub(/\{\$([^(){}]*)[^{}]*\}/, "")
mk << commonmk.gsub(/\{\$([^(){}]*)[^{}]*\}/, "").sub(/^revision\.tmp::$/, '\& Makefile')
mk << <<-'APPEND'
update-download:: touch-unicode-files after-update
@ -456,6 +456,8 @@ after-update::
open(clean.add("Makefile"), "w") do |f|
f.puts mk
end
File.open(clean.add("revision.tmp"), "w") {}
File.open(clean.add(".revision.time"), "w") {}
ENV["CACHE_SAVE"] = "no"
make = ENV["MAKE"] || ENV["make"] || "make"
args = args.map {|arg| arg.join("=")}