carta
moz-version(1)

moz-version1

Version format handling tool

Usage

moz-version [options] action

Overview

moz-version is a tool for working with version string from the Mozilla suite. It can compare Mozilla versions, convert Mozilla version into Debian upstream version and the other way round.

Actions

-c, --compare version1 comparator version2

Compare version numbers, where comparator is a binary operator. moz-version returns success (zero result) if the specified condition is satisfied, and failure (non-zero result) otherwise. The comparator must be one of lt le eq ne ge gt.

-d, --to-deb version

Converts Mozilla version into a Debian upstream version. For a full Debian version you have to add a revision.

-m, --to-moz version

Converts Debian version into a Mozilla version. The Debian revision and the epoch will be stripped away.

Options

-h, --help

Display a brief help message.

-s, --silent

Do not print anything and die silent on errors.

-v, --verbose

Print more information.

History

  • Debian 12 (Bookworm) to Debian 7 (Wheezy): the text shown here
  • Debian 6.0 (Squeeze)

Author

Benjamin Drung <[email protected]>

From mozilla-devscripts 0.54.2+nmu1 in Debian 12 (Bookworm). Parsed by carta from the page's man source.