summaryrefslogtreecommitdiff
path: root/src/rebar_reltool.erl
Commit message (Collapse)AuthorAgeFilesLines
* Fix R13B03 build (Reported-by: Sergey Nartimov)Tuncer Ayaz2012-07-281-4/+4
|
* relative libs in RELEASES fileSteven Gravell2012-07-261-1/+1
|
* Do not use application:set_envTuncer Ayaz2012-07-231-17/+19
|
* Restore old reltool vsn checkTuncer Ayaz2012-07-221-14/+15
| | | | | reltool is missing an app resource file before R14A. Therefore, restore the old check and add TODO.
* Fix Dialyzer warningTuncer Ayaz2012-07-211-1/+1
|
* Use a more appropriate method to check reltool's vsnUlf Wiger2012-07-211-13/+14
| | | | | | | | | | | | | | | | If running e.g. rebar generate using an OTP development build, rebar will complain that reltool has the version "", which is less than the required "0.5.2". This is because rebar_reltool simply checks the path returned by code:which(reltool), which doesn't yield version information if used in a development build. This patch substitutes a more robust method (load reltool and fetch the info from application:loaded_applications()). As it happens, this will not be enough to make things work, but now Reltool will explain that it cannot generate a spec from a system that is not installed, giving a better hint as to what needs to be done.
* Remove shared stateTuncer Ayaz2012-07-131-11/+10
|
* Use ~p for file:consult/1 {error, Reason} printoutDaniel Luna2012-06-291-1/+1
|
* Remove ?FAIL in favor of ?ABORTDave Smith2012-06-081-4/+4
|
* Fix whitespace errorsTuncer Ayaz2012-06-011-9/+15
|
* Fix #232 (rebar_reltool:mk_target_dir)Yurin Slava2012-06-011-2/+6
|
* Remove unused include_lib directiveYurin Slava2012-02-041-1/+0
|
* Remove trailing whitespace in rebar_reltoolTuncer Ayaz2011-12-191-1/+1
|
* Add root_dir option to reltool.configsmithwinston2011-11-261-1/+4
| | | | | | | | | | | | | | | | | When generating a node using rebar generate, rebar always used code:root_dir() to find the Erlang installation to clone into the node tree. However, for anyone wishing to build a cross-compiled node, there was no way to override this. This patch adds a new option to reltool.config file to allow an alternate root_dir to be specified, for example: {root_dir, "/tmp/otp_R14B03_armv7l"} This assumes that the contents of /tmp/otp_R14B03_armv7l has been generated using the instructions found in the xcomp directory in your $ERL_TOP structure. NOTE: you may have to add additional filters to exclude files not present in the xcomp version, such as the .smp files if you have disabled that.
* Add overlay command to run overlays onlySteven Gravell2011-10-201-24/+37
| | | | | | | | required for building on a different machine to what your live config is kept on. This way you can build on one machine, distribute to new machine, then run overlays against a live config to prevent accidently running code against a live config in a development or ci environment.
* Get rid of app.configjoewilliams2011-09-201-2/+21
| | | | | | | | | | | | | | | | | | | | app.config has been a long standing erroneous file in rebar. Erlang/OTP documentation suggests a sys.config file instead. This file is stored in the releases/VSN directory. This does a few things but most importantly it ensures your config (contained in the application environment) survives a hot upgrade. It also has the advantage of allowing the configuration of the application to be versioned along side the application code. This patch flips rebar to use sys.config rather than app.config. Additionally it makes this flip to vm.args as well, making them versioned just like sys.config. This patch also includes runner script changes to support the old etc/app.config config file location and support for Windows. Thanks to mokele for the initial work and kick in the pants to make this finially happen.
* look for new and old versions in the target parentSteven Gravell2011-07-011-53/+8
| | | | | | | | | | | The target_dir config in reltool allows you to put your release in a directory other than in ./NAME, so we should look in the parent directory of that to find the new and old versions instead of simply looking in ./ Move untaring and retaring into a temporary path instead of in ./ to prevent name collisions with "releases" and "lib" that might exist already. Having a subdirectory rel/releases/ can be useful.
* Apply Tidier suggestionsTuncer Ayaz2011-06-021-1/+1
|
* Expand variables in replace overlayMax Lapshin2011-04-291-1/+1
|
* Centralize variable resolution; add target_dir variableDave Smith2011-04-101-22/+15
|
* Add support for template_wildcarding; allows files from many directories to ↵Dave Smith2011-04-101-0/+15
| | | | be templated.
* Refactor overlay_vars to enable overrides from command-lineDave Smith2011-04-101-28/+25
|
* Clean up codeTuncer Ayaz2011-02-061-17/+27
|
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Apply Tidier suggestionsTuncer Ayaz2011-01-131-6/+8
|
* Port rebar_file_utils to WindowsJuhani Rankimies2010-10-271-1/+1
| | | | | | | | 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.
* Tidier improvementsKostis Sagonas2010-10-261-17/+18
|
* Dialyzer related cleanupsKostis Sagonas2010-10-101-1/+1
|
* Move version check/enforcement for reltool into rebar_reltool; rebar should ↵Dave Smith2010-06-221-0/+18
| | | | work (excepting reltool support) with anything as far back as R12, once you've compiled it
* Enable target_dir to be passed as command-line parameterDave Smith2010-06-221-10/+15
|
* Make sure to apply any file perms when doing a templated fileDave Smith2010-06-211-1/+8
|
* Escape backslashes prior to escaping the quotesDave Smith2010-06-211-2/+3
|
* Fix compiler warningsKlas Johansson2010-06-191-1/+1
|
* fix call to dict:new (should be dict:from_list)Andy Gross2010-06-161-1/+1
|
* Fix missing parameter when invoking rebar_utils:shDave Smith2010-06-151-1/+1
|
* Refactor of overlay support in reltool extension; adding support for ↵Dave Smith2010-06-141-110/+155
| | | | | | | templating overlay files --HG-- extra : rebase_source : f042bd65d63dbaf4177f444f66033883bf7522a5
* Look for dirs named erts-vsn when setting up spec for copying filesDave Smith2010-01-141-1/+7
|
* Rolled back getopt to restore custom variablesTuncer Ayaz2010-01-011-2/+2
|
* Added vi modeline/emacs local variables to file headersTuncer Ayaz2009-12-311-0/+2
|
* Enhanced option parsing with new getopt and made rebar more user friendlyTuncer Ayaz2009-12-311-2/+2
|
* Deleted trailing whitespaceTuncer Ayaz2009-12-301-7/+7
|
* Make sure to append overlay files to end of spec; otherwise might be ↵Dave Smith2009-12-161-1/+1
| | | | overwritten by canonical install
* Adding support for overlaysDave Smith2009-12-141-1/+30
|
* Fixing warningDave Smith2009-12-141-8/+0
|
* Adding rudimentary support for creating empty dirs in reltool targetDave Smith2009-12-111-24/+85
|
* Add ability to forcibly overwrite existing releaseDave Smith2009-12-101-1/+14
|
* Ongoing reltool integration work; now better able to identify issues with ↵Dave Smith2009-12-031-16/+81
| | | | missing apps in code path
* Adding first crack at reltool supportDave Smith2009-12-021-0/+97