This module contains functions to generate boot scripts
(
Generates a release upgrade file
By default,
The release resource file
Which applications to be deleted, that is,
applications listed in
Which applications to be added, that is, applications
listed in
Which applications to be upgraded/downgraded, that
is, applications listed in both
If the emulator needs to be restarted after upgrading or
downgrading, that is, if the
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 option
If option
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 option
If option
Generates a boot script
The release resource file
By default, the boot script and boot file are located in
the same directory as
The correctness of each application is checked as follows:
The version of an application specified in
the
There are to be no undefined applications, that is,
dependencies to applications that are not included in
the release. (Key
There are to be no circular dependencies among the applications.
There are to be no duplicated modules, that is, modules with the same name but belonging to different applications.
If option
The applications are sorted according to the dependencies
between the applications. Where there are no dependencies,
the order in the
The function fails if the mandatory
applications
If
All files are searched for in the current path. It is
assumed that the
If option
In the generated boot script all application directories are
structured as
Option
Example: If option
The checks performed before the boot script is generated can
be extended with some cross reference checks by specifying
option
By default, errors and warnings are printed to tty and
the function returns
If option
If option
Creates a release package file
The release resource file
By default, the release package file is located in the same
directory as
By default, the release package contains the directories
All these files are searched for in the current path. If
option
Option
Example: If option
% tar tf TEST.tar myapp-1/ebin/myapp.app ...
Option
Each separate (variable) package is included in the
main
Each separate (variable) package is
generated as a separate file in the same directory as
the
No separate (variable) packages are generated. Applications that are found underneath a variable directory are ignored.
A directory
If the release package is to contain a new Erlang runtime
system, the
All checks with function
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