Element: <copy>

Syntax


<!ELEMENT copy           (option*, source+, destination)>
<!ATTLIST copy
          base           CDATA #IMPLIED>

This element occurs in the elements alfs, else, stage. and then

See also : option, source, destination.

Description

The element copy is used to copy one or several source files and/or directories into a destination file or directory

The supported options are options of the cp command:

.

When processing this element, one copy each source to the destination, using the specified options.

When the attribute base is specified, it should contain the name of the current directory from which the copy operation is performed.

Examples


<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