Commit 0907a5e7 by Jon Wood

Allow the Rakefile to be used in isolation for test runs

parent fe1e3d56
......@@ -24,7 +24,7 @@ end
desc "Build a file pointing at the database"
task :default do
mime_database_path = locate_mime_database
target_dir = "#{ENV.fetch("RUBYARCHDIR")}/mimemagic"
target_dir = "#{ENV.fetch("RUBYARCHDIR", "../lib")}/mimemagic"
mkdir_p target_dir
open("#{target_dir}/path.rb", "w") do |f|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment