This module contains functions to generate boot scripts
(
Generates a release upgrade file
By default,
The release resource file
Which applications should be deleted, that is
applications which are listed in
Which applications should be added, that is applications
which are listed in
Which applications should be upgraded/downgraded, that
is applications listed in both
If the emulator needs to be restarted after upgrading or
downgrading, that is if the ERTS version differs between
Instructions for this are added to the
The optional
All the files are searched for in the code path. It is
assumed that the
If the option
If the
If an upgrade includes a change from an emulator earlier
than OTP R15 to OTP R15 or later, the warning
By default, errors and warnings are printed to tty and
the function returns
If the option
If the option
Generates a boot script
The release resource file
By default, the boot script and boot file are placed in
the same directory as
The correctness of each application is checked:
The version of an application specified in
the
There should be no undefined applications, that is,
dependencies to applications which are not included in
the release. (Key
There should be no circular dependencies among the applications.
There should be no duplicated modules, that is, modules with the same name but belonging to different applications.
If the
The applications are sorted according to the dependencies
between the applications. Where there are no dependencies,
the order in the
The function will fail if the mandatory
applications
If
All files are searched for in the current path. It is
assumed that the
If the option
In the generated boot script all application directories are
structured as
The
Example: If the option
The checks performed before the boot script is generated can
be extended with some cross reference checks by specifying
the
By default, errors and warnings are printed to tty and
the function returns
If the option
Creates a release package file
The release resource file
By default, the release package file is placed in the same
directory as
By default, the release package contains the directories
All these files are searched for in the current path. If
the option
The
Example: If the option
% tar tf TEST.tar myapp-1/ebin/myapp.app ...
The
A directory called
If the release package should contain a new Erlang runtime
system, the
All checks performed with the
The return value and the handling of errors and warnings
are the same as described for
The Erlang runtime system requires that the contents of
the script used to boot the system is a binary Erlang term.
This function transforms the
A boot script generated using the
app(4), appup(4), erl(1), rel(4), release_handler(3), relup(4), script(4)