diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-04-23 00:04:59 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-04-23 00:04:59 -0400 |
commit | 3a63bec39fde05dcddf3f693dd780879662b599c (patch) | |
tree | 1e3fcf0e19a2128f63b669eb2703c3de154aed64 /README.md | |
parent | 0537a0699d01e4ae61dd32db0d964224bf9a1f5e (diff) | |
parent | 7b723d3a87230a893e61130024b5dbc38a3a749c (diff) |
Merge pull request #358 from tsloughter/build_with_rebar3
real bootstrapping
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -73,7 +73,8 @@ Example: -behaviour(rebar_provider). -export([init/1, - do/1]). + do/1, + format_error/1]). -define(PROVIDER, something). -define(DEPS, []). @@ -98,6 +99,10 @@ init(State) -> do(State) -> %% Do something {ok, State}. + +-spec format_error(any()) -> iolist(). +format_error(Reason) -> + io_lib:format("~p", [Reason]). ``` @@ -118,16 +123,21 @@ You can download a pre-built binary version of rebar3 based on the last commit f https://s3.amazonaws.com/rebar3/rebar3 -#### Building rebar +#### Bootstrapping rebar3 ```sh $ git clone https://github.com/rebar/rebar3 $ cd rebar3 -$ ./bootstrap/bootstrap -==> rebar (compile) -Congratulations! You now have a self-contained script called "rebar3" in -your current working directory. Place this script anywhere in your path -and you can use rebar to build OTP-compliant apps. +$ ./bootstrap +``` + +### Developing on rebar3 + +When developing you can simply run `escriptize` to build your changes but the new escript is under `_build/default/bin/rebar3` + +```sh +$ ./rebar3 escriptize +$ _build/default/bin/rebar3 ``` |