Element: <destination>

Syntax


<!ELEMENT destination    (#PCDATA)>

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

Description

The element destination is used to specify the name of the destination file or directory when processing a Element : <copy> | Element: <move> | Element: <unpack> element.

It is also used to specify the path of the destination directory when processing a Element: <download> element.

Examples

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

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