summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix error where ebin was created as a fileCharles McKnight2011-01-061-0/+1
| | | | | | | | | | | | | This patch remedies an issue where the ebin directory would be erroneously created as a file by the first "mv" command in rebar_protobuffs_compile.erl [line 106] if the ebin file did not exist at the root application level. In essence, the patch ensures that the ebin directory exists at the application directory level before any "mv" commands are executed. The following code was inserted at line 106: ok = filelib:ensure_dir(filename:join("ebin","dummy")),
* Fix order of erl_opts to be more accurateTuncer Ayaz2011-01-041-2/+2
|
* Remove erlc target after fail_on_warning failureJoseph Wayne Norton2010-12-271-0/+2
| | | | | Prevent overlooking a compilation warning by removing the target beam file after fail_on_warning failure.
* Add abnfc supportAnthony Ramine2010-12-221-0/+109
| | | | | | | | | abnfc is an ABNF parser generator. Options are: - doc_root (defaults to "src") - out_dir (defaults to "src") - source_ext (defaults to ".abnf") - module_ext (defaults to "")
* Support single level of nested template variablesDavid Reid2010-12-221-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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}}.
* Adding support for app_vars in external fileDave Smith2010-12-201-5/+23
|
* Implement update-deps and disable auto updateTuncer Ayaz2010-12-172-23/+43
|
* Fix typo in rebar_erlydtl_compilerAnthony Ramine2010-12-161-1/+1
|
* Fix conversion of boolean atom to stringklaar2010-12-091-2/+0
| | | | | | | | | | mustache:render("{{banan}}", dict:from_list([{banan, true}])). ** exception error: no function clause matching mustache:escape(true,[]) in function erl_eval:do_apply/5 in call from erl_eval:expr/5 in call from erl_eval:expr/5 in call from mustache:render/3
* Add rebar code path to common test code pathBenjamin Nortier2010-12-091-2/+11
|
* Add VCS dir check for bzr and svnTuncer Ayaz2010-12-071-0/+5
|
* Check for VCS directory before attempting source update.Dave Smith2010-12-071-5/+22
|
* Fix code clarityTuncer Ayaz2010-12-071-3/+3
|
* Fix compilation of *_first_filesMihai Balea2010-12-011-3/+20
| | | | | | - Check the existence of first_files and fail if they are not present - Get first_files lists from local instead of inherited config definitions, since they only make sense in the local context
* Return descriptive errors from is_app_available()Adam Kocoloski2010-11-301-10/+10
|
* Add new global flag 'debug_info' to erlc_compilerJoseph Wayne Norton2010-11-301-1/+8
| | | | | | | Using rebar's commandline, enable/disable 'debug_info' for compilation. This feature if added to all rebar compilers could help simplify and standardize this common use case for all rebar build targets.
* Support dialyzer plt paths having "~/" as a prefixJoseph Wayne Norton2010-11-231-0/+2
| | | | e.g. {dialyzer_opts, [{plt, "~/.dialyzer_plt.R14B"}]}.
* Fix bug 805Juhani Rankimies2010-11-221-1/+1
| | | | | | Use rebar_utils:find_executable/1 that wraps the path in quotes to make it work even if it contains whitespace.
* Fix git tag and branch dependency handlingMisha Gorodnitzky2010-11-201-6/+8
| | | | | Change git downloads and updates to not create branches and fix git tag handling.
* Remove mention of "clean" command from rebar_edocDaniel Néri2010-11-141-1/+0
|
* Fix EDoc syntax errorsDaniel Néri2010-11-141-3/+3
|
* Add possibility to specify rebar config for the "main" applicationAnders2010-11-092-7/+24
|
* Create ebin directory if it is missing for depsAnders2010-11-091-2/+6
|
* Stop clean from erroring if there's no .app fileAndrew Thompson2010-10-291-1/+9
| | | | | If rebar tries to clean the .app file (because there's a .app.src file) and it doesn't exist (possibly because of a bad compile), don't fail.
* Improve error logging when running a command failsAndrew Thompson2010-10-291-2/+5
| | | | | Make the error message newline terminated and, if possible, log the name of the module in which the failure occured.
* Port rebar_file_utils to WindowsJuhani Rankimies2010-10-273-10/+76
| | | | | | | | Modify rm_rf and cp_r to work when {win32,_} = os:type(). Simplify rm_rf to only accept one filename, directoryname or wildcard. Add unit tests to ensure a similar behaviour on windows and unix. Thanks to tuncer for guidance and feedback.
* Remove unused functions from rebar_file_utilsJuhani Rankimies2010-10-271-16/+0
| | | | mkdir_p/1 and ln_sf/2.
* Tidier improvementsKostis Sagonas2010-10-2616-99/+78
|
* Clarify rebar_utils:ensure_dir/1 commentTuncer Ayaz2010-10-251-1/+2
|
* Refactor Dialyzer support to make it more usableTuncer Ayaz2010-10-252-31/+88
|
* Fixed 819; removed the edoc clean function entirely in favor of requiring ↵Dave Smith2010-10-251-13/+1
| | | | | | user to explicitly specify what files should be deleted. If there is no convention or way to programatically figure out what files to process, don't guess.
* Match ok result of filelib:ensure_dir/1Tuncer Ayaz2010-10-221-1/+1
|
* Add support for overriding the default name/location of the escript; add ↵Dave Smith2010-10-191-5/+18
| | | | | | | support for cleaning generated script file --HG-- extra : rebase_source : 466f440dcb699e031c5c520d28ee7731b60c535a
* First pass at updating dependencies (svn, hg, bzr untested)David Reid2010-10-031-5/+29
|
* Use eunit_dir() instead of ?EUNIT_DIR since the function exists.Oscar Hellström2010-08-241-1/+1
| | | | The eunit_dir() does use the ?EUNIT_DIR macro internally, but it also builds, what I guess is, an absolute path, which might be better :) At least it's more consistent.
* Make sure *both* .eunit and ebin directory exists before setting up the code ↵Oscar Hellström2010-08-241-1/+2
| | | | | | path. Normally the ebin directory doesn't contain any source files. Therefore it won't be kept in the repository by, at least, mercurial and also maybe git unless you put some .keep file in it or do some other hack. The ebin directory is created by rebar compile, but if rebar eunit is called before rebar compile, you end up with a {'EXIT', {{badmatch,{error,bad_directory}},...}. Another approach would be not to match cod:add_pathz(ebin_dir()) with ok, but I think this is an ok solution as well.
* Add spec: rebar_utils:abort/2 does not returnTuncer Ayaz2010-10-151-0/+1
| | | | Thanks to Kostis for no_return() result type.
* Fix bug found by Dialyzer in neotoma compilerTuncer Ayaz2010-10-141-2/+4
| | | | Thanks to Cliff Moon for correct fun clause to add.
* Fix issues found by dialyzerTuncer Ayaz2010-10-102-5/+6
|
* Dialyzer related cleanupsKostis Sagonas2010-10-1012-57/+65
|
* Made OTP app module validation optionalDave Smith2010-10-101-2/+11
|
* Parse transforms and behaviours are compiled firstAndrew Thompson2010-10-051-8/+18
| | | | | | | | | | | | | | | The previous code in rebar that was trying to ensure that parse transforms and behaviours were compiled first doesn't work with multiple compiler workers because of the possiblity of one of the workers compiling a file that needs a parse transform or a behaviour at the same time another worker is compiling that same parse transform or behaviour. The solution this patch implements is to append any parse transforms and any behaviours (in that order) to erl_first_files to ensure that they are compiled before any regular files. This patch won't break any currently working uses of erl_first files because we only append to the list, so anything in erl_first_files is still compiled before anything else.
* Add optional eunit coverage report to terminalAndrew Thompson2010-10-061-2/+32
| | | | | | Add a coverage report similar to the one output to index.html except that it is output to the terminal if the new rebar.conf option 'cover_print_enabled' is set to true.
* Fix bug 676Tuncer Ayaz2010-10-021-2/+2
| | | | | | The previous fix to relax the regex was insufficient. This is basically the diff proposed by Bryan Fink with the difference of using 'C' instead of 'en_US'.
* Fix xrl_opts/yrl_opts option handlingTuncer Ayaz2010-10-021-6/+6
|
* Make SVN version matching locale agnosticTuncer Ayaz2010-10-021-1/+1
| | | | Reported-by: Manuel Duran Aguete <manuel@aguete.org>
* Update TODO commentTuncer Ayaz2010-10-011-1/+1
|
* getopt optimization and dialyzer fix from KostisTuncer Ayaz2010-10-011-3/+3
|
* Fix dialyzer warning. Thanks KostisTuncer Ayaz2010-10-011-1/+1
|
* Remove never matching clauseTuncer Ayaz2010-10-011-3/+1
|