~ubuntu-branches/ubuntu/lucid/patch/lucid

« back to all changes in this revision

Viewing changes to patch.man

  • Committer: Bazaar Package Importer
  • Author(s): Michael Fedrowitz
  • Date: 2004-07-18 12:56:02 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040718125602-s2ukzvags50l967n
Tags: 2.5.9-2
* Standards-Version 3.6.1 (no changes required).
* Applied upstream patch to fix CR stripping. (Closes: #196297)
* Applied a patch from SUSE to prevent previously created backup files
  from being overwritten. (Closes: #248950)
* Ran aclocal and autoconf to make the above patch work.
* Touch aclocal.m4 and configure during build to prevent the usual
  time-skew problems.
* Removed emacs vars from changelog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
.de Id
3
3
.ds Dt \\$4
4
4
..
5
 
.Id $Id: patch.man,v 1.26 1998/03/21 15:48:43 eggert Exp $
 
5
.Id $Id: patch.man,v 1.31 2002/05/25 10:36:44 eggert Exp $
6
6
.ds = \-\^\-
7
7
.de Sp
8
8
.if t .sp .3
70
70
or is encapsulated one or more times by prepending
71
71
"\fB\- \fP" to lines starting with "\fB\-\fP" as specified by Internet RFC 934,
72
72
this is taken into account.
 
73
After removing indenting or encapsulation,
 
74
lines beginning with
 
75
.B #
 
76
are ignored, as they are considered to be comments.
73
77
.PP
74
78
With context diffs, and to a lesser extent with normal diffs,
75
79
.B patch
185
189
.B " \(bu"
186
190
If
187
191
.B patch
188
 
is not ignoring \s-1RCS\s0, ClearCase, and \s-1SCCS\s0 (see the
 
192
is not ignoring \s-1RCS\s0, ClearCase, Perforce, and \s-1SCCS\s0 (see the
189
193
.BI "\-g\ " num
190
194
or
191
195
.BI \*=get= num
192
196
option), and no named files exist
193
 
but an \s-1RCS\s0, ClearCase, or \s-1SCCS\s0 master is found,
 
197
but an \s-1RCS\s0, ClearCase, Perforce, or \s-1SCCS\s0 master is found,
194
198
.B patch
195
199
selects the first named file
196
 
with an \s-1RCS\s0, ClearCase, or \s-1SCCS\s0 master.
 
200
with an \s-1RCS\s0, ClearCase, Perforce, or \s-1SCCS\s0 master.
197
201
.TP
198
202
.B " \(bu"
199
203
If no named files exist,
200
 
no \s-1RCS\s0, ClearCase, or \s-1SCCS\s0 master was found,
 
204
no \s-1RCS\s0, ClearCase, Perforce, or \s-1SCCS\s0 master was found,
201
205
some names are given,
202
206
.B patch
203
207
is not conforming to \s-1POSIX\s0,
362
366
.BR patch 's
363
367
actions when a file is under \s-1RCS\s0 or \s-1SCCS\s0 control,
364
368
and does not exist or is read-only and matches the default version,
365
 
or when a file is under ClearCase control and does not exist.
 
369
or when a file is under ClearCase or Perforce control and does not exist.
366
370
If
367
371
.I num
368
372
is positive,
369
373
.B patch
370
374
gets (or checks out) the file from the revision control system; if zero,
371
375
.B patch
372
 
ignores \s-1RCS\s0, ClearCase, and \s-1SCCS\s0
 
376
ignores \s-1RCS\s0, ClearCase, Perforce, and \s-1SCCS\s0
373
377
and does not get the file; and if negative,
374
378
.B patch
375
379
asks the user whether to get the file.
411
415
Send output to
412
416
.I outfile
413
417
instead of patching files in place.
 
418
Do not use this option if
 
419
.I outfile
 
420
is one of the files to be patched.
414
421
.TP
415
422
\fB\-p\fP\fInum\fP  or  \fB\*=strip\fP\fB=\fP\fInum\fP
416
423
Strip the smallest prefix containing
458
465
Do not remove files that are empty after patching.
459
466
.TP
460
467
.B " \(bu"
461
 
Do not ask whether to get files from \s-1RCS\s0, ClearCase, or \s-1SCCS\s0.
 
468
Do not ask whether to get files from \s-1RCS\s0, ClearCase, Perforce,
 
469
or \s-1SCCS\s0.
462
470
.TP
463
471
.B " \(bu"
464
472
Require that all options precede the files in the command line.
715
723
.B PATCH_GET
716
724
This specifies whether
717
725
.B patch
718
 
gets missing or read-only files from \s-1RCS\s0, ClearCase, or \s-1SCCS\s0
 
726
gets missing or read-only files from \s-1RCS\s0, ClearCase, Perforce,
 
727
or \s-1SCCS\s0
719
728
by default; see the
720
729
.B \-g
721
730
or
1097
1106
.fi
1098
1107
.SH BUGS
1099
1108
Please report bugs via email to
1100
 
.BR <bug-gnu-utils@gnu.org> .
 
1109
.BR <bug-patch@gnu.org> .
1101
1110
.PP
1102
1111
.B patch
1103
1112
could be smarter about partial matches, excessively deviant offsets and
1115
1124
This could be construed as a feature.
1116
1125
.SH COPYING
1117
1126
Copyright
1118
 
.if t \(co
 
1127
.ie t \(co
 
1128
.el (C)
1119
1129
1984, 1985, 1986, 1988 Larry Wall.
1120
1130
.br
1121
1131
Copyright
1122
 
.if t \(co
1123
 
1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
1124
 
Free Software Foundation, Inc.
 
1132
.ie t \(co
 
1133
.el (C)
 
1134
1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 
1135
2000, 2001, 2002 Free Software Foundation, Inc.
1125
1136
.PP
1126
1137
Permission is granted to make and distribute verbatim copies of
1127
1138
this manual provided the copyright notice and this permission notice