Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 495 Bytes
require 'rubygems'
require 'rake'
ERLC_FLAGS = "+debug_info -W2 -o ebin"
task :default => :test
task :chdir do
Dir.chdir(File.join(File.dirname(__FILE__), *%w[.]))
end
task :build => :chdir do
sh "mkdir -p ebin"
sh "erlc #{ERLC_FLAGS} src/*.erl"
end
task :test => :chdir do
sh "erlc #{ERLC_FLAGS} -DTEST -I etest src/*.erl"
sh "etest/run.es"
end
task :console => :chdir do
sh "erl +Bc +K true -smp enable -pa ebin -sname local_console_#{$$} -kernel start_boot_server true"
end
Jump to Line
Something went wrong with that request. Please try again.