From 4a6edd6f6ffe820db595dfa1f2c43311f6581ca7 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Wed, 19 Sep 2012 14:45:55 +0200 Subject: [reltool] Use application name from .app file instead of directory name In the first traversal of library directories, reltool used only the directory names in order to figure out application names. This would succeed if the directory name was AppName only or AppName-AppVsn and AppVsn consisted of integers separated by dots only. If the AppVsn has any other format, then reltool would not find the correct application name. With this commit, reltool will first look for a .app file and use the .app file name as the application name. This will allow different formats of the version identifier in the directory name. Note that reltool can still not sort (and select the latest) amongst version identifiers of other format than integers separated by dots. --- lib/reltool/doc/src/reltool.xml | 24 ++++++++++++++++++++++-- lib/reltool/doc/src/reltool_usage.xml | 11 ++++++++--- 2 files changed, 30 insertions(+), 5 deletions(-) (limited to 'lib/reltool/doc') diff --git a/lib/reltool/doc/src/reltool.xml b/lib/reltool/doc/src/reltool.xml index d7d7e12566..fbe29753be 100644 --- a/lib/reltool/doc/src/reltool.xml +++ b/lib/reltool/doc/src/reltool.xml @@ -51,8 +51,18 @@ defines library directories where additional applications may reside and it defaults to the directories listed by the operating system environment variable - ERL_LIBS. See the module code for more info. - Finally single modules and entire applications may be read from + ERL_LIBS. See the module code for more info.

+ +

An application directory AppDir under a library + directory is recognized by the existence of an AppDir/ebin + directory. If this does not exist, reltool will not + consider AppDir at all when looking for applications.

+ +

It is recommended that application directories are named as the + application, possibly followed by a dash and the version + number. For example myapp or myapp-1.1.

+ +

Finally single modules and entire applications may be read from Escripts.

Some configuration parameters control the behavior of Reltool @@ -372,6 +382,11 @@

This parameter is mutual exclusive with lib_dir. If vsn and lib_dir are both omitted, the latest version will be chosen.

+

Note that in order for reltool to sort application versions + and thereby be able to select the latest, it is required that + the version id for the application consits of integers and + dots only, for example 1, 2.0 or + 3.17.1.

lib_dir @@ -383,6 +398,11 @@

This parameter is mutual exclusive with vsn. If vsn and lib_dir are both omitted, the latest version will be chosen.

+

Note that in order for reltool to sort application versions + and thereby be able to select the latest, it is required that + the version id for the application consits of integers and + dots only, for example 1, 2.0 or + 3.17.1.

mod diff --git a/lib/reltool/doc/src/reltool_usage.xml b/lib/reltool/doc/src/reltool_usage.xml index d128e80a77..0041e60d8f 100644 --- a/lib/reltool/doc/src/reltool_usage.xml +++ b/lib/reltool/doc/src/reltool_usage.xml @@ -5,7 +5,7 @@
2009 - 2011 + 2012 Ericsson AB, All Rights Reserved @@ -257,6 +257,11 @@ policy part of the page. By default the latest version of the application is selected, but it is possible to override this by explicitly selecting another version.

+ +

Note that in order for reltool to sort application versions and + thereby be able to select the latest, it is required that the + version id for the application consits of integers and dots only, + for example 1, 2.0 or 3.17.1.

By default the Application inclusion policy on system level is used for all applications. Set the value to @@ -335,7 +340,7 @@

There are two categories of modules on the Module dependencies page. If the module is used by other modules, - these are listed under Modules used by others. If the + these are listed under Modules using this. If the module uses other modules, these are listed under Used modules.

@@ -365,7 +370,7 @@

There are two categories of modules on the Dependencies page. If the module is used by other modules, these are listed - under Modules used by others. If the module uses other + under Modules using this. If the module uses other modules, these are listed under Used modules.

Double click on an module name to launch a module window.

-- cgit v1.2.3