commit | 5809ba1ef2ca3fdc4d68b8ac411792c7dd0089b3 | [log] [tgz] |
---|---|---|
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | Thu Apr 16 16:47:26 2015 +0200 |
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | Thu Apr 16 16:55:09 2015 +0200 |
tree | b9c75d5e2191514b5d685e7d63f6bd1470ce8b96 | |
parent | 04d2634f87a861ca7c0bec9b059f90e4918e0576 [diff] |
bootstrap: better warning fix (Thanks James Fish) As a follow-up to bad3a795, implement a better fix for the pre-18.0 warning. erlang:now/0 was deprecated in 18.0, and as the escript has to pass erl_lint:module/1 (even without -mode(compile)), we would see a deprecation warning for erlang:now/1. One solution is to use -compile({nowarn_deprecated_function, [{erlang, now, 0}]}), but that would raise a warning in versions older than 18.0. Calling erlang:now/0 via apply/3 avoids that.
rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.
rebar is a self-contained Erlang script, so it's easy to distribute or even embed directly in a project. Where possible, rebar uses standard Erlang/OTP conventions for project structures, thus minimizing the amount of build configuration work. rebar also provides dependency management, enabling application writers to easily re-use common libraries from a variety of locations (git, hg, etc).
Information on building and installing Erlang/OTP can be found here (more info).
To build rebar you will need a working installation of Erlang R13B03 (or later).
Should you want to clone the rebar repository, you will also require git.
You can download a pre-built binary version of rebar from:
https://github.com/rebar/rebar/wiki/rebar
$ git clone git://github.com/rebar/rebar.git $ cd rebar $ ./bootstrap Recompile: src/getopt ... Recompile: src/rebar_utils ==> rebar (compile) Congratulations! You now have a self-contained script called "rebar" in your current working directory. Place this script anywhere in your path and you can use rebar to build OTP-compliant apps.
Please refer to CONTRIBUTING.
In case of problems that cannot be solved through documentation or examples, you may want to try to contact members of the community for help. The community is also where you want to go for questions about how to extend rebar, fill in bug reports, and so on.
The main place to go for questions is the rebar mailing list. If you need quick feedback, you can try the #rebar channel on irc.freenode.net. Be sure to check the wiki first, just to be sure you're not asking about things with well known answers.
For bug reports, roadmaps, and issues, visit the github issues page.
General rebar community resources and links: