BSD Ports

devel/unidiff 1.1 NetBSD

Converts between uni-diffs and context diffs

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
public-domain
Categories
devel
Package size
10.7 KiB, 32.3 KiB installed

Description

Unify will accept either a regular context diff (old- or new-style) or a unified context diff as input, and generate either a unified diff or a new-style context diff as output. The default is to output the opposite style of whatever was input, but this can be overridden by the -c or -u options. If the source file is not mentioned, it will be read from the standard input.

Various other options allow you to echo the non-diff (comment) lines to stderr, modify the diff by removing the comment lines, and/or tweak the diff into a format that is good for releasing patches.

Unipatch is a filter to turn a unified diff into a degenerate context diff (no '!'s) for patch.

Install

Binary package:

pkgin install unidiff

From pkgsrc:

cd /usr/pkgsrc/devel/unidiff && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.1
NetBSD 10.1 aarch641.1
SmartOS / illumos x86_641.1
macOS 15 arm641.1

Dependencies

No port depends on this one.