Tristan Sloughter
ae9c83fb4b
copy project apps to deps output dir for compilation
pirms 10 gadiem
Tristan Sloughter
c3e2ab1c1e
remove unneeded get_modules_list function
pirms 10 gadiem
Tristan Sloughter
8f03afded4
consolidate app validation and exist checks
pirms 10 gadiem
Tristan Sloughter
b654272063
remove unused functions from app utils
pirms 10 gadiem
nuex
79a1c285f0
return an error when an app file is missing
pirms 10 gadiem
Tristan Sloughter
8e5c916cb6
move dir functions from utils to new module rebar_dir
pirms 10 gadiem
Tristan Sloughter
e1b1152b21
slowly widdling away at dialyzer errors
pirms 10 gadiem
Tristan Sloughter
3924908f64
more efficient check for existing dep
pirms 10 gadiem
Tristan Sloughter
1dabd217db
inefficient way, but safer, of checking if an app is already downloaded
pirms 10 gadiem
Tristan Sloughter
6aaeae93ea
remove use of 17+ function lists:droplast/1
pirms 10 gadiem
Tristan Sloughter
629792f36b
start of moving to splitting state from config parsing
pirms 10 gadiem
Tristan Sloughter
eb8fa02df7
large refactoring
Removed separate compilers
Resolves apps to build
Finds avail deps before pulling/building
Includes relx
Simplifies build commands
pirms 11 gadiem
Tuncer Ayaz
5fa6671511
Remove experimental flags
Remove experimental flag from:
* qc compile_only=true
* eunit compile_only=true
* src/foo.app.src.script
* eunit tests=
pirms 11 gadiem
Eric Merritt
eaad535e31
Allow script to be evaluated when app file is loaded
This allows an <app-name>.app.src.script to be defined and evaluated
when <app-name>.app.src or <app-name>.app are loaded. This allows the
user to add project specific manipulations to app metadata.
pirms 12 gadiem
Tuncer Ayaz
c0644dc195
Finalize app=, skip_app=, suite= deprecations
pirms 13 gadiem
Tuncer Ayaz
252757c753
Do not use application:set_env
pirms 13 gadiem
Tuncer Ayaz
e185e86bff
Remove shared state
pirms 13 gadiem
Tuncer Ayaz
27e5a0ae5b
Cleanup and simplify deprecated option handling
pirms 13 gadiem
Tuncer Ayaz
1de48e4902
Move vcs_vsn/2 to rebar_utils
pirms 13 gadiem
Tuncer Ayaz
8c89a388bf
Universally support apps=/skip_apps=
pirms 13 gadiem
Tuncer Ayaz
a5e39c2c54
Move is_skipped_app/0 to rebar_app_utils
pirms 13 gadiem
Jan Klötzke
85575fca65
rebar_app_utils: fix git hook for Windows
pirms 13 gadiem
Tim Watson
6dfcd8b9f2
Support for custom version commands
This patch adds support for customising the way in which rebar generates
version numbers for app.src files using the `{vsn,Spec}` approach.
Whilst the existing `{vsn,ScmName::atom()}` syntax will continue to
work, users can also pass `{vsn,{cmd,Cmd::string()}}` in which
case the provided *command* will be used. For example:
```erlang
{application, doodah,
[
{vsn, {cmd, "git rev-parse --short HEAD"}}]}.
```
pirms 13 gadiem
Tuncer Ayaz
0741157a11
Fix misspelling of accommodate
pirms 13 gadiem
Tuncer Ayaz
475daf2c4a
Comment git vsn cmd changes
pirms 13 gadiem
Tuncer Ayaz
a53fc2d8f5
Document git vsn cmd and fix formatting
pirms 14 gadiem
Yurii Rashkovskii
15b7798e46
Add precise git versioning of multiple apps
Allows using tools like git-subtree and still maintaining proper
git-based vsns for those "imported" subtrees. Also helps understanding
what was the last change introduced to a specific application within a
multi-application repository (at this moment, all applications that
reside in the same repository, will share the same autogenerated git
vsn)
pirms 14 gadiem
Tuncer Ayaz
f08f13d103
Extend app resource file existence checks
pirms 14 gadiem
Tuncer Ayaz
a4ffe1ce62
Use filename:join/1
pirms 14 gadiem
Dave Smith
4dc2414d89
Add support for priv/<vcs.vsn> as fallback for version info
pirms 14 gadiem
Dave Smith
4be3631687
Make sure to pass dir of app when invoking git; enhance shell logging output
pirms 14 gadiem
Dave Smith
6056c63eed
Clean up and simplify {vsn, VCS} support
pirms 14 gadiem
Tuncer Ayaz
01a7473dac
Add {vsn,Vcs} support for bzr, hg and svn
pirms 14 gadiem
Adam Kocoloski
b0860da124
Expand {vsn,git} in app.src to git-describe output
pirms 14 gadiem
Tuncer Ayaz
c466076ffb
Clean up emacs file local variables
pirms 14 gadiem
Tuncer Ayaz
46b2c0612e
Fix bug 770
pirms 14 gadiem
Kostis Sagonas
7dc76d578e
Tidier improvements
pirms 14 gadiem
Klas Johansson
07b20d16f8
Remove warnings reported by xref
Replace rebar_util:get_cwd/0 by rebar_utils:get_cwd/0. Luckily the
misspelt module name doesn't seem to have caused any harm, since
rebar_app_utils:is_app_dir/0 and rebar_rel_utils:is_rel_dir/0 aren't
called (only their /1 counterparts).
pirms 15 gadiem
Dave Smith
dfb0d87658
Removing some unnecessary debugging messages
--HG--
extra : rebase_source : 05a045be5a
pirms 15 gadiem
Dave Smith
2af6dc84ae
Complete implementation for simplistic .app.src processing.
pirms 15 gadiem
Dave Smith
c28a16258c
Add caching of app file
pirms 15 gadiem
Dave Smith
c19b8ac003
Refactoring app file access to be via rebar_app_utils in prep for supporting .app.src
pirms 15 gadiem
Tuncer Ayaz
9a8015f2d7
Added vi modeline/emacs local variables to file headers
pirms 15 gadiem
Dave Smith
b491898690
Refactor rebar to build a self-contained script
pirms 15 gadiem
Dave Smith
28fe3bfd54
More gross structural work; now has log levels and broken out log level control
pirms 15 gadiem
Dave Smith
b7e2088c27
Initial commit
pirms 15 gadiem