Next: , Up: overview   [Contents][Index]


1.1 Quick run–time loading

The easiest way to use the library is to include at run–time the library file libmbfl.sh in the script. To do it, we install the package on the system and use this code in the scripts:

source "${MBFL_LIBRARY:=$(type -p mbfl-config &>/dev/null \
   && mbfl-config)}"

after the service variables have been declared. Required user defined variables.

This code will read the full pathname of the library from the environment variable MBFL_LIBRARY; if this variable is not set: the script mbfl-config is invoked with no arguments to acquire the pathname. mbfl-config is installed by the package in the $(bindir) directory, which we must include in the PATH environment variable.


Next: , Up: overview   [Contents][Index]

This document describes version 3.0.0-devel.0 of Marcos Bash Functions Library.