--- pkgsrc/pkgtools/pkgdiff/files/patchdiff.1 2000/06/28 01:42:43 1.1 +++ pkgsrc/pkgtools/pkgdiff/files/patchdiff.1 2011/02/02 10:23:02 1.4 @@ -1,34 +1,32 @@ -.\" $NetBSD: patchdiff.1,v 1.1 2000/06/28 01:42:43 wiz Exp $ +.\" $NetBSD: patchdiff.1,v 1.4 2011/02/02 10:23:02 wiz Exp $ .\" -.\" Copyright (c) 2000 by Thomas Klausner +.\" Copyright (c) 2000-2011 by Thomas Klausner .\" All Rights Reserved. Absolutely no warranty. .\" -.Dd June 25, 2000 -.Dt patchdiff +.Dd January 31, 2011 +.Dt PATCHDIFF 1 .Os .Sh NAME .Nm patchdiff .Nd compare sets of patches .Sh SYNOPSIS .Nm -.Op Fl d Ar output-directory .Sh DESCRIPTION .Nm is a perl script that simplifies comparing a set of previously existing patches with a new one created with .Xr mkpatches 1 . - +.Pp .Nm must be called from the package's main directory, that is -$PKGSRC/category/program. For each patch existing in either the -patches or the $WRKDIR/.newpatches directory (the second of which can -be overridden by the argument of the -.Fl d -option), a matching patch is -looked for in the other directory, and, if one is found, the two are -compared with +.Pa ${PKGSRC}/category/program . +For each patch existing in either the +.Pa patches +directory, it is compared with its backup file +.Pq Pa patch-foo.orig +using .Xr diff 1 . -.Pp +If no relevant differences are found, the original patch is restored. .Sh SEE ALSO .Xr diff 1 , .Xr patchdiff 1 ,