From e10079c3793da3d0f6d76adaf38422cba63bc427 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Mon, 28 Nov 2011 10:39:15 +0100 Subject: Fix minor faults in documentation of release handling Fix typos or minor faults. Move out code listing of target_system.erl, and use codeinclude statement to include this file from sasl/examples directory. --- system/doc/design_principles/release_structure.xml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'system/doc/design_principles/release_structure.xml') diff --git a/system/doc/design_principles/release_structure.xml b/system/doc/design_principles/release_structure.xml index 2e1daa611a..8aea0e1a10 100644 --- a/system/doc/design_principles/release_structure.xml +++ b/system/doc/design_principles/release_structure.xml @@ -4,7 +4,7 @@
- 20032009 + 20032011 Ericsson AB. All Rights Reserved. @@ -61,12 +61,14 @@ {ApplicationN, AppVsnN}]}.

The file must be named Rel.rel, where Rel is a unique name.

-

Name, Vsn and Evsn are strings.

+

Name, Vsn and EVsn are strings.

Each Application (atom) and AppVsn (string) is the name and version of an application included in the release. - Note the the minimal release based on Erlang/OTP consists of + Note that the minimal release based on Erlang/OTP consists of the kernel and stdlib applications, so these applications must be included in the list.

+

If the release is to be upgraded, it must also include + the sasl application.

Example: We want to make a release of ch_app from the Applications @@ -173,6 +175,7 @@ lib/ch_app-1/ebin/ch_app.beam lib/ch_app-1/ebin/ch_sup.beam lib/ch_app-1/ebin/ch3.beam releases/A/start.boot +releases/A/ch_rel-1.rel releases/ch_rel-1.rel

Note that a new boot script was generated, without the local option set, before the release package was made. @@ -180,6 +183,17 @@ releases/ch_rel-1.rel under lib. Also, we do not know where the release package will be installed, so we do not want any hardcoded absolute paths in the boot script here.

+

The release resource file mysystem.rel is duplicated in + the tar file. Originally, this file was only stored in + the releases directory in order to make it possible for + the release_handler to extract this file + separately. After unpacking the tar file, release_handler + would automatically copy the file + to releases/FIRST. However, sometimes the tar file is + unpacked without involving the release_handler (e.g. when + unpacking the first target system) and therefore the file is now + instead duplicated in the tar file so no manual copying is + necessary.

If a relup file and/or a system configuration file called sys.config is found, these files are included in the release package as well. See -- cgit v1.2.3