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

Touch Unicode headers and the timestamp before packaging

Not to download Unicode data files at building from the packages.
This commit is contained in:
Nobuyoshi Nakada 2019-05-30 22:57:49 +09:00
parent f0945176c3
commit ab0c8cc021
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -406,13 +406,15 @@ def package(vcs, rev, destdir, tmp = nil)
mk << commonmk.gsub(/\{\$([^(){}]*)[^{}]*\}/, "") mk << commonmk.gsub(/\{\$([^(){}]*)[^{}]*\}/, "")
mk << <<-'APPEND' mk << <<-'APPEND'
prepare-package: touch-unicode-files
prepare-package: prereq update-download clean-cache $(CLEAN_CACHE) prepare-package: prereq update-download clean-cache $(CLEAN_CACHE)
clean-cache $(CLEAN_CACHE): after-update clean-cache $(CLEAN_CACHE): after-update
update-download:: update-gems update-download:: update-gems
after-update:: extract-gems after-update:: extract-gems
extract-gems: update-gems extract-gems: update-gems
update-gems: update-gems:
$(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: update-unicode $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time:
touch-unicode-files:
APPEND APPEND
open(clean.add("Makefile"), "w") do |f| open(clean.add("Makefile"), "w") do |f|
f.puts mk f.puts mk