summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasaki Hara <ackie.h.gmai@gmail.com>2020-12-10 17:21:10 +0900
committerGitHub <noreply@github.com>2020-12-10 17:21:10 +0900
commit72184e51779b6a3b9b8580b036a052fdc3181ced (patch)
treeafbe539e36d90f4d99247a5527bb62c6edec8302
parentb1dc064d12cb8a02994a54bb02f66b19debf4828 (diff)
downloadrake-compiler-72184e51779b6a3b9b8580b036a052fdc3181ced.tar.gz
Use tar.gz instead of tar.bz2 (#179)
Starting from 3.0.0-preview2, Ruby stopped shipping tar.bz2 archives. This changes the archive format to tar.gz for better compatibility.
-rw-r--r--tasks/bin/cross-ruby.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/bin/cross-ruby.rake b/tasks/bin/cross-ruby.rake
index 278541c..dce9441 100644
--- a/tasks/bin/cross-ruby.rake
+++ b/tasks/bin/cross-ruby.rake
@@ -76,7 +76,7 @@ CLOBBER.include("#{USER_HOME}/ruby/#{MINGW_HOST}/#{RUBY_CC_VERSION}")
CLOBBER.include("#{USER_HOME}/config.yml")
# ruby source file should be stored there
-file "#{USER_HOME}/sources/#{RUBY_CC_VERSION}.tar.bz2" => ["#{USER_HOME}/sources"] do |t|
+file "#{USER_HOME}/sources/#{RUBY_CC_VERSION}.tar.gz" => ["#{USER_HOME}/sources"] do |t|
# download the source file using wget or curl
chdir File.dirname(t.name) do
if RUBY_SOURCE
@@ -89,7 +89,7 @@ file "#{USER_HOME}/sources/#{RUBY_CC_VERSION}.tar.bz2" => ["#{USER_HOME}/sources
end
# Extract the sources
-source_file = RUBY_SOURCE ? RUBY_SOURCE.split('/').last : "#{RUBY_CC_VERSION}.tar.bz2"
+source_file = RUBY_SOURCE ? RUBY_SOURCE.split('/').last : "#{RUBY_CC_VERSION}.tar.gz"
file source_dir => ["#{USER_HOME}/sources/#{source_file}"] do |t|
chdir File.dirname(t.name) do
t.prerequisites.each { |f| sh "tar xf #{File.basename(f)}" }