Permalink
Browse files

Changed release:tar to package:tar.

  • Loading branch information...
1 parent f3a8386 commit 60a3e73c68b433fc8e6083cd73d47de616b9114a @brixen brixen committed Jul 23, 2012
Showing with 8 additions and 8 deletions.
  1. +7 −0 rakelib/package.rake
  2. +1 −8 rakelib/release.rake
View
7 rakelib/package.rake
@@ -25,6 +25,13 @@ namespace :package do
puts "Computed MD5 to #{prebuilt_archive}.md5"
end
+ desc "Create a tarball from the source"
+ task :tar do
+ stamp = Time.now.strftime("%Y%m%d")
+ archive = "rubinius-#{RBX_VERSION}-#{stamp}.tar.gz"
+ sh "git archive --format=tar --prefix=rubinius-#{RBX_VERSION}/ HEAD | gzip > #{archive}"
+ end
+
task :binary_build do
RBX_BINARY_PREFIX = ENV["RBX_BINARY_PREFIX"] || "/usr/local/rubinius/#{RBX_VERSION}"
RBX_BINARY_BIN = ENV["RBX_BINARY_BIN"] || "/usr/local/bin/rbx"
View
9 rakelib/release.rake
@@ -105,13 +105,6 @@ collection, Just-In-Time compilation, and compatibility with existing C APIs.
fd.close unless fd == STDOUT
end
- desc "Create the tarball for the release"
- task :tar do
- stamp = Time.now.strftime("%Y%m%d")
- @rbx_tar = "rubinius-#{RBX_VERSION}-#{stamp}.tar.gz"
- sh "git archive --format=tar --prefix=rubinius-#{RBX_VERSION}/ HEAD | gzip > #{@rbx_tar}"
- end
-
desc "Tag HEAD with the current release"
task :tag do
sh "git tag release-#{RBX_VERSION} HEAD"
@@ -135,7 +128,7 @@ collection, Just-In-Time compilation, and compatibility with existing C APIs.
end
puts "* Making tar.gz..."
- Rake::Task['release:tar'].invoke
+ Rake::Task['package:tar'].invoke
# Do this separately, so that the testing can fail and we leave the directory
# where it is.

0 comments on commit 60a3e73

Please sign in to comment.