View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Johan Vromans > makepatch-2.05 > applypatch


Annotate this POD


New  2
Open  3
Stalled  1
View/Report Bugs


applypatch - apply 'makepatch' generated script to update a source tree


applypatch [ options ] patch-kit


Applypatch applies a patch kit as generated by the makepatch program. It performs the following actions:

Applypatch arguments ^

Applypatch takes one argument, the name of the patch kit as generated by makepatch. If no name is specified, the patch kit is read from standard input.

Applypatch options ^

Options are matched case insensitive, and may be abbreviated to uniqueness.

-directory dir

The name of the source directory to be patched.


Perform the checks on the patch kit and patch directory, but do not make any changes.


Force continuation of the patch process even when corruption or verification errors are detected. This is very dangerous!


Do not remove patch backup files (with extension .orig) upon completion.

-patch cmd

The patch command to be used. Default is "patch -p0 -N". Additionally, a "-s" will be added unless option -verbose was specified.


This option will cause applypatch and the patch program to emit verbose progress information.


This option will cause applypatch and the patch program to emit no progress information, only error messages.

Environment variables ^


The suffix used by (some versions of?) patch to back up the originals of patched files. Upon completion, these files are removed by applypatch unless the option -retain was specified. Default value if ".orig".


makepatch(1), diff(1), patch(1), perl(1), rm(1).


This program is written by Johan Vromans <>.

See section AUTHOR AND CREDITS of the makepatch program for an extensive list of people that helped one way or another in the makepatch / applypatch project.


This program is Copyright 1992,1999,2006 by Squirrel Consultancy. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" which comes with Perl.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.

syntax highlighting: