Element: <patch>

Syntax

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

This element occurs : Element : <alfs> | Element: <stage>

See also : Element: <param> | Element: <prefix>

Description

The element patch is one of the top-level operation elements. It is used to execute the patch command.

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

The sub-element prefix provides a means to specify an environment variable or some other prefix to the patch 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