rebar/ebin/rebar.app
joewilliams 5298e93a18 Add 'generate-upgrade' command
To support OTP release upgrades I have added support for building
upgrade packages. Support for this is included in the
rebar_upgrade module, specifically generate_upgrade/2. It requires
one variable to be set on the command line 'previous_release' which
is the absolute path or relative path from 'rel/' to the previous
release one is upgrading from. Running an upgrade will create the
needed files, including a relup and result in a tarball containing
the upgrade being written to 'rel/'. When done it cleans up the
temporary files systools created.

Usage:
$ rebar generate-upgrade previous_release=/path/to/old/version

This also includes a dummy application that can be used to test
upgrades as well as an example.

Special thanks to Daniel Reverri, Jesper Louis Andersen and
Richard Jones for comments and patches.
2011-01-27 18:37:39 +01:00

88 lines
2.8 KiB
Erlang

{application, rebar,
[{description, "Rebar: Erlang Build Tool"},
{vsn, "2"},
{modules, [ rebar,
rebar_abnfc_compiler,
rebar_app_utils,
rebar_base_compiler,
rebar_config,
rebar_core,
rebar_cleaner,
rebar_ct,
rebar_deps,
rebar_dialyzer,
rebar_asn1_compiler,
rebar_edoc,
rebar_erlc_compiler,
rebar_escripter,
rebar_eunit,
rebar_file_utils,
rebar_lfe_compiler,
rebar_erlydtl_compiler,
rebar_log,
rebar_otp_app,
rebar_port_compiler,
rebar_protobuffs_compiler,
rebar_neotoma_compiler,
rebar_port_compiler,
rebar_post_script,
rebar_pre_script,
rebar_rel_utils,
rebar_reltool,
rebar_require_vsn,
rebar_subdirs,
rebar_templater,
rebar_upgrade,
rebar_utils,
rebar_xref,
getopt,
mustache ]},
{registered, []},
{applications, [kernel,
stdlib,
sasl]},
{env, [
%% Default log level
{log_level, error},
%% Default parallel jobs
{jobs, 3},
%% any_dir processing modules
{any_dir_modules, [
rebar_require_vsn,
rebar_deps,
rebar_subdirs,
rebar_templater,
rebar_cleaner
]},
%% Dir specific processing modules
{modules, [
{app_dir, [
rebar_pre_script,
rebar_abnfc_compiler,
rebar_protobuffs_compiler,
rebar_neotoma_compiler,
rebar_asn1_compiler,
rebar_erlc_compiler,
rebar_lfe_compiler,
rebar_erlydtl_compiler,
rebar_port_compiler,
rebar_otp_app,
rebar_ct,
rebar_eunit,
rebar_dialyzer,
rebar_escripter,
rebar_edoc,
rebar_xref,
rebar_post_script
]},
{rel_dir, [
rebar_reltool,
rebar_upgrade
]}
]}
]}
]}.