注意:标准仓库地址如下:https://github.com/rebar/rebar
此仓库将不再处理任何 Pull Request 或 Issue,如需任何与 erlang 构建工具相关的内容,请前往 rebar/rebar 查看!
=====
rebar
rebar 是一个 Erlang 构建工具,可帮助轻松编译和测试 Erlang 应用程序、端口驱动程序以及发布版本。
rebar 是一个独立的 Erlang 脚本,因此很容易进行分发,甚至可以直接嵌入到项目中。在可能的情况下,rebar 会采用标准的 Erlang/OTP 项目结构规范,从而最大限度地减少构建配置的工作量。rebar 还提供了依赖管理功能,使应用程序开发者能够轻松地从各种位置(如 git、hg 等)重用常用库。
构建
有关 Erlang/OTP的构建与安装信息可以在这里](https://github.com/erlang/otp/wiki/Installation)找到([更多信息](https://github.com/erlang/otp/blob/master/INSTALL.md))。
依赖项
要构建 rebar,您需要已正确安装的 Erlang R13B03(或更高版本)。
如果您想克隆 rebar 的代码仓库,还需要拥有 git。
下载
您可以从以下地址下载预编译的二进制版本 rebar:
https://github.com/rebar/rebar/wiki/rebar
构建 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.
为 rebar 做贡献
请参阅 CONTRIBUTING。
社区与资源
如果遇到文档或示例无法解决的问题,您可以尝试联系社区成员寻求帮助。关于如何扩展 rebar、提交错误报告等相关问题,也应当向社区咨询。
提问的主要渠道是 rebar 邮件列表。如果您需要快速得到反馈,可以尝试在 irc.freenode.net 的 #rebar 频道提问。请务必先查看 wiki,以免询问那些已有明确答案的问题。
有关错误报告、路线图及各类问题,请访问 github issues 页面。
rebar 社区的常用资源与链接:
- Rebar 邮件列表
- irc.freenode.net 上的 #rebar 频道
- wiki
- issues
