Kouhei Sutou
null+****@clear*****
Tue Sep 29 17:32:18 JST 2015
Kouhei Sutou 2015-09-29 17:32:18 +0900 (Tue, 29 Sep 2015) New Revision: ed4af5e089ebb4d0d002008b100166b2db044311 https://github.com/pgroonga/pgroonga/commit/ed4af5e089ebb4d0d002008b100166b2db044311 Message: Add missing xxHash to archive Modified files: Rakefile Modified: Rakefile (+12 -4) =================================================================== --- Rakefile 2015-09-29 17:09:13 +0900 (5f60646) +++ Rakefile 2015-09-29 17:32:18 +0900 (38fa23c) @@ -61,6 +61,14 @@ def extract_zip(filename, destrination_dir) Archive::Zip.extract(filename, destrination_dir) end +def export_source(base_name) + sh("git archive --prefix=#{base_name}/ --format=tar HEAD | " + + "tar xf -") + sh("(cd vendor/xxHash && " + + "git archive --prefix=#{base_name}/vendor/xxHash/ --format=tar HEAD) | " + + "tar xf -") +end + version = find_version(package) archive_base_name = "#{package}-#{version}" @@ -76,13 +84,13 @@ dist_files = `git ls-files`.split("\n").reject do |file| end file archive_name => dist_files do - sh("git archive --prefix=#{archive_base_name}/ --format=tar HEAD | " + - "gzip > #{archive_name}") + export_source(archive_base_name) + sh("tar", "czf", archive_name, archive_base_name) + rm_r(archive_base_name) end file windows_archive_name => dist_files do - sh("git archive --prefix=#{archive_base_name}/ --format=tar HEAD | " + - "tar xf -") + export_source(archive_base_name) groonga_base_name = "groonga-#{latest_groonga_version}" groonga_suffix = ENV["GROONGA_SUFFIX"] if groonga_suffix -------------- next part -------------- HTML����������������������������...다운로드