summaryrefslogtreecommitdiff
path: root/src/rebar_utils.erl
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #229 from tolbrino/tb-patch-envTristan Sloughter2014-06-131-1/+19
|\ | | | | Add REBAR to environment before executing hooks
| * Add REBAR to environment before executing hooksTino Breddin2014-06-021-1/+19
| | | | | | | | | | | | | | | | REBAR will be set to the rebar binary which was executed and runs the builds. Enables the use of the same binary for rebar invocations as part of a pre or post hook like so: ${REBAR} escriptize
* | Merge pull request #136 from waisbrot/add-p4-supportFred Hebert2014-06-131-0/+20
|\ \ | |/ |/| Add support for the Perforce VCS client via the "p4" tool
| * Add 'p4' (Perforce) as a dependency typeNathaniel Waisbrot2014-03-171-0/+20
| | | | | | | | | | | | | | This calls the 'p4' command-line tool to checkout and sync Perforce trees. It involves significantly more special code in Rebar than using 'git p4', but it eliminates the indirection of Rebar->Git->Python->Perforce
* | Do not wrap base_dir with filename:absname() redpine502014-05-101-2/+2
| | | | | | base_dir() returns already filename:absname()'ed path.
* | Update rebar_utils.erlredpine502014-05-081-1/+2
| | | | | | | | | | | | | | On windows, bootstrap.bat failed with next error. Command 'escriptize' not understood or not applicable This happens because the drive name in path got from rebar_utils:get_cwd() and base_dir(Config) are different case. Made the drive name the same lowercase using filename:absname().
* | file_utils: properly report errors (fix #95)Tuncer Ayaz2014-04-111-2/+3
|/ | | | While at it, improve the error message printed by rebar_utils:sh/2.
* erlc: clean-up, enhance, and regression fix fd17693Tuncer Ayaz2014-03-051-1/+5
| | | | | | | | | | | | | | | | | | | | | | * update files * fix Dialyzer warning * unconditionally enable info fil * clean-up inconsistencies * use term_to_binary compression * use try...catch instead of case...catch...of * do not write build info file if the graph is unmodified * store info file as <base_dir>/.rebarinfo * properly support list of compile directives * fix regressions: - Fix a bug in handling of files to compile first. - If a file that is depended upon itself depends on other files, make sure those are compiled first. While at it, rename variables for correctness. Reported-by: David Robakowski - Make sure that FirstFiles has no dupes and preserves the proper order. - headers referenced via -include_lib() were not properly resolved to absolute filenames - .erl files found in sub dirs of src_dirs were not properly resolved to absolute filenames
* Fix false reporting of (plain) vsn stringsTuncer Ayaz2013-11-261-6/+8
| | | | | | | | | | | rebar used to mistakenly report plain version strings like {vsn, "1.0.0"} as follows: DEBUG: vcs_vsn: Unknown VCS atom in vsn field: "1.0.0" Properly detect unknown/unsupported version terms and abort if we encounter one. While at it, rename a variable in vcs_vsn/3 to be non-misleading.
* Adding debug statements closer to open_portDave Smith2013-06-251-0/+1
|
* Fix crsh with Unicode in environment varsDave Thomas2013-06-231-2/+2
|
* Fix crash when env vars contain utf8 charsDave Thomas2013-06-221-3/+3
|
* Add one more "unicode" option in expand_env_variable—I have a bullet in my ↵Dave Thomas2013-06-211-1/+1
| | | | prompt that was blowing it up
* Fix handling of Unicode characters in env varsSlava Yurin2013-02-181-1/+1
|
* Revert arch string changesTuncer Ayaz2012-10-291-6/+1
|
* Fix whitespace errorsTuncer Ayaz2012-09-281-1/+2
|
* deps: add fossil scm supportMartin Schut2012-09-281-4/+5
|
* Revert 15b7798e4 and restore old git-describe callTuncer Ayaz2012-09-211-11/+1
| | | | | Restore previous 'git describe' behaviour as discussed here: http://lists.basho.com/pipermail/rebar_lists.basho.com/2012-September/001713.html
* rebar_utils: refactor get_experimental and get_deprecated funsTuncer Ayaz2012-08-101-21/+17
|
* Use separate dirs for eunit and qcTuncer Ayaz2012-08-091-4/+0
|
* rebar_utils: fix whitespace errorTuncer Ayaz2012-08-091-1/+1
|
* Replace test-compile with compile_only=true optionTuncer Ayaz2012-08-091-0/+11
|
* rebar_utils: fix whitespace errorTuncer Ayaz2012-08-061-1/+1
|
* rebar_utils: call get_cwd/1 locallyTuncer Ayaz2012-08-061-2/+2
|
* rebar_utils: clean up specsTuncer Ayaz2012-08-061-2/+1
|
* Only print absolute filename if not in base_dirTuncer Ayaz2012-08-051-1/+9
|
* Fix -D handlingJoseph Wayne Norton2012-07-281-3/+3
|
* Add 'qc' cmd and rename eunit-compile to test-compileTuncer Ayaz2012-07-231-2/+9
|
* Do not use application:set_envTuncer Ayaz2012-07-231-8/+8
|
* Remove shared stateTuncer Ayaz2012-07-131-7/+10
|
* Clean up rebar_utils exportsTuncer Ayaz2012-07-021-5/+5
|
* Move erl_opts/1 and src_dirs/1 to proper placeTuncer Ayaz2012-07-021-20/+20
|
* Move erl_opts/1 and src_dirs/1 to rebar_utils.erlMotiejus Jakštys2012-07-021-1/+47
| | | | These functions will be necessary in rebar_eunit.erl, too.
* Append os family to arch stringTuncer Ayaz2012-06-231-1/+6
|
* rebar_utils: move internal fun to proper placeTuncer Ayaz2012-06-231-33/+33
|
* Fix #252 (Reported-by: Maxim-Vladimirsky)Tuncer Ayaz2012-06-211-5/+4
|
* Fix #247 (Reported-by: Uvarov Michael)Tuncer Ayaz2012-06-171-2/+4
|
* Use delayed_halt everywhereDave Smith2012-06-081-1/+1
|
* Remove ?FAIL in favor of ?ABORTDave Smith2012-06-081-2/+6
|
* Clarify use of git describeTuncer Ayaz2012-05-111-3/+2
|
* Apply Tidier suggestionTuncer Ayaz2012-04-161-3/+1
|
* Skip erlang:halt/1 workaround if >=R15B01Tuncer Ayaz2012-03-271-7/+16
|
* Deprecate port_envs in favor of port_envTuncer Ayaz2012-03-091-2/+36
|
* Add rebar_utils:delayed_halt/1Tuncer Ayaz2012-02-161-2/+15
|
* Extend rebar_utils:deprecatedTuncer Ayaz2012-02-031-1/+8
|
* Fix Dialyzer (race condition) warningTuncer Ayaz2012-02-021-4/+5
|
* Cache vsn info to avoid expensive vcs cmd callsYurii Rashkovskii2012-02-021-0/+11
|
* Only print sh/2 options on debug log levelTuncer Ayaz2012-01-291-2/+2
|
* Fix whitespace errorsTuncer Ayaz2012-01-131-5/+6
|
* Clean up rebar_utilsTuncer Ayaz2012-01-101-30/+30
|