Element: <destination>

Syntax

<!ELEMENT destination    (#PCDATA)>

This element occurs in : Element : <copy> | Element: <download> | Element: <move> | Element: <unpack> |

Description

The destination element is used to specify the name of the destination file or directory when processing an element in which it occurs.

Example #1

The first example is an unpack command.

<unpack>
        <archive>/usr/src/lfs-packages/gzip.1.2.4a.tar.gz</archive>
        <destination>/usr/src</destination>
</unpack>

The equivalent bash script is :

        echo Unpacking /usr/src/lfs-packages/gzip.1.2.4a.tar.gz into /usr/src
cd /usr/src
tar -xzvf /usr/src/lfs-packages/gzip.1.2.4a.tar.gz

Example #2

The second example is a copy command.

<copy base="/usr/src/mypackage">
        <option>force</option>
        <source>config.txt</source>
        <destination>/opt/mypackage/config.txt</destination>
</copy>

The equivalent bash script is :

        echo Copying 'config.txt into /opt/mypackage/config.txt'
cd /usr/src/mypackage
cp -f  config.txt /opt/mypackage/config.txt