Element: <patch>

Syntax


<!ELEMENT patch          (param*)>
<!ATTLIST patch
          base           CDATA #IMPLIED>

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

See also : param,

Description

The element patch is used to execute the patch command.

The sub-elements param contain the parameters of the command.

The attribute base specified the directory in which the command will be performed.

Examples


<patch>
    <param>-N</param>
    <param>-p1</param>
    <param>-i ../gawk-3.1.1.patch</param>
</patch>

The equivalent bash script is :


echo 'patch -N -p1 -i ../gawk-3.1.1.patch'
patch -N -p1 -i ../gawk-3.1.1.patch