GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  APPLYPATCH (1)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS

<B>applypatchB> [ options ] patch-kit

DESCRIPTION

<B>ApplypatchB> applies a patch kit as generated by the <B>makepatchB> program. It performs the following actions:
o First, it will extensively verify that the patch kit is complete and did not get corrupted during transfer.
o Then it will apply some heuristics to verify that the directory in which the patch will be applied does indeed contain the expected sources.

If a corruption or verification error is detected, <B>applypatchB> exits without making changes.

o If the kit is okay, and the directory seems to be the right one: it creates new files and directories as necessary.
o Then it runs the <B>patchB> program to apply the patch to the source files.
o Upon completion, obsolete files, directories and .orig files are removed, file modes of new files are set, and the timestamps of all patched files are adjusted.

Applypatch arguments

<B>ApplypatchB> takes one argument, the name of the patch kit as generated by <B>makepatchB>. 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.
<B>-directoryB> dir The name of the source directory to be patched.
<B>-checkB> Perform the checks on the patch kit and patch directory, but do not make any changes.
<B>-forceB> Force continuation of the patch process even when corruption or verification errors are detected. This is very dangerous!
<B>-retainB> Do not remove patch backup files (with extension .orig) upon completion.
<B>-patchB> cmd The patch command to be used. Default is "patch -p0 -N. Additionally, a -s" will be added unless option <B>-verboseB> was specified.
<B>-verboseB> This option will cause <B>applypatchB> and the <B>patchB> program to emit verbose progress information.
<B>-quietB> This option will cause <B>applypatchB> and the <B>patchB> program to emit no progress information, only error messages.

Environment variables

SIMPLE_BACKUP_SUFFIX The suffix used by (some versions of?) <B>patchB> to back up the originals of patched files. Upon completion, these files are removed by <B>applypatchB> unless the option <B>-retainB> was specified. Default value if ".orig".

SEE ALSO

<B>makepatchB>(1), <B>diffB>(1), <B>patchB>(1), <B>perlB>(1), <B>rmB>(1).

AUTHOR AND CREDITS

This program is written by Johan Vromans <jvromans@squirrel.nl>.

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.

COPYRIGHT AND DISCLAIMER

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.

Search for    or go to Top of page |  Section 1 |  Main Index


perl v5.20.3 APPLYPATCH (1) 2012-10-26

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.