--- pkgsrc/pkgtools/pkgdiff/files/patchdiff.1 2011/02/02 23:34:48 1.6 +++ pkgsrc/pkgtools/pkgdiff/files/patchdiff.1 2016/02/10 16:00:10 1.8 @@ -1,6 +1,6 @@ -.\" $NetBSD: patchdiff.1,v 1.6 2011/02/02 23:34:48 wiz Exp $ +.\" $NetBSD: patchdiff.1,v 1.8 2016/02/10 16:00:10 wiz Exp $ .\" -.\" Copyright (c) 2000-2011 by Thomas Klausner +.\" Copyright (c) 2000-2016 by Thomas Klausner .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -24,7 +24,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd January 31, 2011 +.Dd February 10, 2016 .Dt PATCHDIFF 1 .Os .Sh NAME @@ -32,6 +32,7 @@ .Nd compare sets of patches .Sh SYNOPSIS .Nm +.Op Fl D | Fl d Ar dir .Sh DESCRIPTION .Nm is a perl script that simplifies comparing a set of previously @@ -47,8 +48,23 @@ directory, it is compared with its backu .Pq Pa patch-foo.orig using .Xr diff 1 . -If no relevant differences are found, the original patch is restored. +.Pp +If the +.Fl d +option is used, +.Nm +looks for patches in +.Ar dir +instead of the default +.Pa patches +directory. +If the +.Fl D +option is used, +.Nm +looks in +.Pa $WRKDIR/.newpatches . .Sh SEE ALSO .Xr diff 1 , -.Xr patchdiff 1 , +.Xr mkpatches 1 , .Xr pkgdiff 1