Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.
Find a file
David Reid 63d5ceb61d Support single level of nested template variables
Add support for defining template variables of the following form:

{variables, [{appid, "mochiwebapp"},
         {author, "Mochi Media <dev@mochimedia.com>"},
         {year, "2010"},
         {version, "0.1"},
         {port, 8080},
         {dest, "{{appid}}"}]}.

Where dest may be overridden on the commandline but will default to
being the appid. Mochiweb uses this so that we can create new
projects from the template in a configurable directory.

So

$ rebar create template=mochiwebapp dest=foo appid=bar

I thought about special casing dest but figured it might be generally
useful to be able to nest template vars.

However this patch only does one level of resolution. So if

{variables, [{foo, "{{bar}}"},
                {bar, "{{foo}}"}]}.

then bar will end up being the literal string {{bar}} and foo the
literal string {{foo}}.
2010-12-22 17:56:52 +01:00
ebin Put rebar_pre_script in correct app_dir module position 2010-07-24 05:13:16 +02:00
include Overhaul env expansion so that rebar fully expands env refs prior to invoking the shell script. Also now using DRV_* env vars for compilation/linking of files found in c_src; this frees up "normal" CFLAGS/LDFLAGS for usage in sub build scripts. 2010-02-16 07:05:29 -07:00
inttest Adding simple test suite for common_test functionality 2010-06-22 15:41:39 -06:00
priv Implement update-deps and disable auto update 2010-12-17 12:39:50 +01:00
src Support single level of nested template variables 2010-12-22 17:56:52 +01:00
test Port rebar_eunit_tests to Windows 2010-10-27 11:39:12 -06:00
.gitignore Ignore .eunit 2010-12-08 12:05:02 +01:00
.hgignore Add .gitignore to the source tree 2010-10-03 16:00:15 +02:00
.hgtags Added tag RELEASE-1 for changeset e8747041ef63 2009-12-18 15:11:54 -07:00
bootstrap Add debug flag to make it easier to get a debug version of rebar 2010-10-07 19:02:37 -06:00
bootstrap.bat add bat scripts for bootstrap and rebat (windows doesn't understand shebang), make bootstrap work on windows 2010-08-02 20:35:26 +03:00
HACKING Document how to write good commit messages 2010-08-25 23:29:17 +02:00
LICENSE Added HACKING, LICENSE and THANKS files 2009-12-31 20:31:22 +01:00
Makefile Add "clean" target 2010-06-08 13:23:36 -06:00
NOTES.org Initial commit 2009-11-25 15:23:42 -07:00
rebar.bat Improve rebar.bat 2010-10-27 11:39:12 -06:00
rebar.config Enable xref checks on rebar 2010-04-09 09:25:08 -06:00
rebar.config.sample Document the pre and post script hooks 2010-11-21 21:58:57 +01:00
THANKS Add Anthony Ramine to THANKS file 2010-12-16 16:14:54 +01:00
TODO Update TODO file 2010-03-08 22:59:50 +01:00