Skip to content

Commit

Permalink
Share common codes
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 24, 2014
1 parent 660b6f0 commit 4671b6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,18 @@ Dir.chdir(build_dir) do
rm(base_name)

prefix = "vendor/groonga"
absolete_prefix = "#{build_dir}/#{prefix}"
remove_needless_files(prefix)
link_executales(prefix)
fix_prefix_in_pc(prefix, "#{build_dir}/#{prefix}")
fix_prefix_in_pc(prefix, absolete_prefix)

puts("-----> Creating Groonga database")
ENV["PATH"] = [
"#{build_dir}/#{groonga_dir}/bin",
"#{absolete_prefix}/bin",
ENV["PATH"],
].join(File::PATH_SEPARATOR)
ENV["LD_LIBRARY_PATH"] = [
"#{build_dir}/#{groonga_dir}/lib",
"#{absolete_prefix}/lib",
ENV["LD_LIBRARY_PATH"],
].join(File::PATH_SEPARATOR)
sh("groonga", "-n", database_path, "quit")
Expand Down

0 comments on commit 4671b6e

Please sign in to comment.