Annotation of pkgsrc/pkgtools/pkgdiff/files/patchdiff.1, revision 1.7
1.7 ! wiz 1: .\" $NetBSD: patchdiff.1,v 1.6 2011/02/02 23:34:48 wiz Exp $
1.1 wiz 2: .\"
1.4 wiz 3: .\" Copyright (c) 2000-2011 by Thomas Klausner <wiz@NetBSD.org>
1.5 wiz 4: .\" All rights reserved.
5: .\"
6: .\" Redistribution and use in source and binary forms, with or without
7: .\" modification, are permitted provided that the following conditions
8: .\" are met:
9: .\" 1. Redistributions of source code must retain the above copyright
10: .\" notice, this list of conditions and the following disclaimer.
11: .\" 2. Redistributions in binary form must reproduce the above copyright
12: .\" notice, this list of conditions and the following disclaimer in the
13: .\" documentation and/or other materials provided with the distribution.
14: .\"
1.6 wiz 15: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR
1.5 wiz 16: .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17: .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1.6 wiz 18: .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
1.5 wiz 19: .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20: .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21: .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22: .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23: .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24: .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25: .\" POSSIBILITY OF SUCH DAMAGE.
1.1 wiz 26: .\"
1.7 ! wiz 27: .Dd February 20, 2011
1.2 wiz 28: .Dt PATCHDIFF 1
1.1 wiz 29: .Os
30: .Sh NAME
31: .Nm patchdiff
32: .Nd compare sets of patches
33: .Sh SYNOPSIS
34: .Nm
1.7 ! wiz 35: .Op Fl D | Fl d Ar dir
1.1 wiz 36: .Sh DESCRIPTION
37: .Nm
38: is a perl script that simplifies comparing a set of previously
39: existing patches with a new one created with
40: .Xr mkpatches 1 .
1.2 wiz 41: .Pp
1.1 wiz 42: .Nm
43: must be called from the package's main directory, that is
1.2 wiz 44: .Pa ${PKGSRC}/category/program .
45: For each patch existing in either the
1.4 wiz 46: .Pa patches
47: directory, it is compared with its backup file
48: .Pq Pa patch-foo.orig
49: using
1.1 wiz 50: .Xr diff 1 .
1.4 wiz 51: If no relevant differences are found, the original patch is restored.
1.7 ! wiz 52: .Pp
! 53: If the
! 54: .Fl d
! 55: option is used,
! 56: .Nm
! 57: looks for patches in
! 58: .Ar dir
! 59: instead of the default
! 60: .Pa patches
! 61: directory.
! 62: If the
! 63: .Fl D
! 64: option is used,
! 65: .Nm
! 66: looks in
! 67: .Pa $WRKDIR/.newpatches .
1.1 wiz 68: .Sh SEE ALSO
69: .Xr diff 1 ,
1.7 ! wiz 70: .Xr mkpatches 1 ,
1.1 wiz 71: .Xr pkgdiff 1
CVSweb <webmaster@jp.NetBSD.org>