Element: <stageinfo>

Syntax


<!ELEMENT stageinfo      (root?, user?, environment?, base?)>

This element occurs in the element : Element: <stage>

See also : Element: <root> | Element : <base> | Element: <environment> | Element: <user>

Description

The element stageinfo allows to specify several context informations used to process the commands of the stage to which the stageinfo belongs.

The base sub-element specify a base directory that will be used by all the commands of the stage, unless that command redefines the base locally.

The user sub-element specify a user name that will be used as the effective user ID of the current process for all the commands of the stage

The root sub-element specify a directory name in which the commands of the stage will be performed (using a chroot command).

The environment sub-element allow to specify a environment variable that will be added to the current environment when processing the commands of the stage.

Examples

<stage>
        <stageinfo>
                <base>/usr/src/gzip.1.2.4a</base>
        </stageinfo>

        <configure />

        <make />

        <make>
                <param>install</param>
        </make>
</stage>

The equivalent bash script is :

echo Executing configure
cd /usr/src/gzip.1.2.4a
./configure

echo Executing make
cd /usr/src/gzip.1.2.4a
make

echo Executing make
cd /usr/src/gzip.1.2.4a
make install

echo Exiting stage