From d783609ac3b2901eb664dd37f964c8fd805dca40 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 7 Sep 2019 11:33:26 +0900 Subject: Get rid of overwriting revision.h and creating .revision.time --- tool/make-snapshot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tool/make-snapshot b/tool/make-snapshot index 7beca8cb53..7bdfcd7842 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -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("=")} -- cgit v1.2.1