MPE/iX Shell and Utilities Reference Manual, Vol 2

patch(1) MPE/iX Shell and Utilities patch(1)
–D symbol
marks changes with the C preprocessor construct
#ifdef symbol
...
#endif
When you compile the resulting (patched) file, you get the original file if symbol is
not defined, and the changed file if symbol is defined.
–d dir changes the current directory to dir before processing the patch.
–e interprets the patchfile as an ed script (the output of diff when –e is specified).
You cannot use this option with –c or –n.
–F n specifies the number of lines of a context diff to ignore when searching for a place to
install a patch.
–f forces processing without requesting additional information from the user.
–i patchfile
reads the patchfile information from patchfile. If you do not specify patchfile, patch
reads the information from the standard input.
–l matches any sequences of blanks in the patchfile to any sequence of blanks in the
input file. In other words, patch considers two lines equivalent if the only differ-
ence between them is their spacing.
–N ignores any patches which have already been applied. By default, patch rejects
already-applied patches.
–n interprets the patchfile as normal diff output You cannot use this option with –c or
–e.
–o outfile
writes patched output to outfile instead of to the original file. When you specify more
than one patch to a single file, patch applies the patches to intermediate versions of
the file created by previous patches, resulting in multiple, concatenated versions of
the file being written to outfile.
–p n deletes n components from the beginning of all path names in the patch file. If a path
name is an absolute path name (that is, starts with a slash), patch treats the leading
slash as the first component of the path, and patch –p 1 deletes the leading slash.
Specifying –p 0 tells patch to use the full path names given in the patch file. If you
do not specify this option, patch only uses the basename (the final path name com-
ponent).
1-410 Commands and Utilities