Skip to content

Commit

Permalink
Add Rakefile to build Groonga
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 19, 2014
1 parent 02f69d0 commit 31d6ae0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Rakefile
@@ -0,0 +1,23 @@
require "pathname"

task :default => :build

groonga_version = "4.0.1"

task :build do
base_name = "groonga-#{groonga_version}"
archive_name = "#{base_name}.tar.gz"
sh("curl", "-O", "http://packages.groonga.org/source/groonga/#{archive_name}")
sh("tar", "xf", archive_name)

install_dir = File.join(Dir.pwd, "vendor", "groonga")
Dir.chdir(base_name) do
sh("./configure",
"--prefix=#{install_dir}",
"--disable-document")
sh("make", "-j")
sh("make", "install")
end

sh("tar", "cJf", "heroku-#{base_name}.tar.xz", "vendor/groonga")
end

0 comments on commit 31d6ae0

Please sign in to comment.