PKGDIFF(1)

NAME
pkgdiff - diff files in a way appropriate for pkgsrc

SYNOPSIS
pkgdiff [options] oldfile newfile

DESCRIPTION
The pkgdiff utility runs diff(1) on the named files, and generates output on stdout that is appropriate to be put as patch file into pkgsrc. An empty NetBSD RCS ID is output first, and some effort is made to ensure that the generated patch does not include any RCS IDs.

options can be any options that are allowed for diff(1).

ENVIRONMENT

  PKGDIFF_FMT
The flags passed to diff(1) when generating patches. If not set, the flags -u and -p are used. Though only unified format patches are used in pkgsrc as proper patches, sometimes it can be useful to have context or plain diffs available.

SEE ALSO
cvs(1), diff(1), mkpatches(1), patch(1), pkgvi(1)