Rebar – tool for building erlang applications.

One week ago I heard about possibility of building erlang applications with rebar tool which is a critical component of Riak’s deployment and build process.

You can download rebar script script or build your own (source for rebar is available here). For your own rebar script you need Erlang R13B03 (or later). So, getting source & building:

wget http://hg.basho.com/rebar/get/tip.tar.bz2
tar -xvf tip.tar.bz2
cd rebar/
./bootstrap

The usage is very simple: just put rebar in your application directory and run commands you need. For instance:

./rebar compile

I’ve found this tool useful, but the disadvantage is that rebar is very young application with leak of documentation. Rebar offers dependency management (it is the main reason I had a look in this tool) but wiki page for this feature remains to be empty :(.

Some links:

wiki

video