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:
parent
5118aa2d58
commit
d783609ac3
1 changed files with 3 additions and 1 deletions
|
@ -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("=")}
|
||||
|
|
Loading…
Reference in a new issue