Created
September 19, 2008 20:40
-
-
Save bmizerany/11655 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Boilerplate Erlang build tasks in Rake | |
def set(name, val) | |
Kernel.instance_eval do | |
define_method(name) { val } | |
end | |
end | |
set :sname, "" | |
%w{ foo bar }.each do |sname| | |
task sname do | |
set :sname, "-sname #{sname}" | |
end | |
end | |
task :default do | |
sh "erlc +debug_info -W2 -o ebin #{Dir["src/**/*.erl"].join(" ")}" | |
end | |
task :c => [:default] do | |
sh "erl #{sname} -boot start_sasl -pa ./ebin -pa ./ebin/*/ebin -s inets start" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment