summaryrefslogtreecommitdiff
path: root/man/moz-version.1
diff options
context:
space:
mode:
Diffstat (limited to 'man/moz-version.1')
-rw-r--r--man/moz-version.119
1 files changed, 14 insertions, 5 deletions
diff --git a/man/moz-version.1 b/man/moz-version.1
index bd820fd..7eb68d6 100644
--- a/man/moz-version.1
+++ b/man/moz-version.1
@@ -23,18 +23,27 @@ moz-version \- version format handling tool
.SH SYNOPSIS
.B moz-version
[\fIoptions\fP]
-\fI--compare ver1 comparator ver2\fR
+\fIaction\fR
.SH DESCRIPTION
.B moz-version
is a tool for working with version string from the Mozilla suite.
-Currently it can only compare versions.
+It can compare Mozilla versions, convert Mozilla version into Debian upstream
+version and the other way round.
.SH ACTIONS
.TP
-.B \-\-compare \fIver1 comparator ver2\fP
+\fB\-c\fR, \fB\-\-compare\fR \fIversion1 comparator version2\fP
Compare version numbers, where \fIcomparator\fP is a binary operator.
\fBmoz-version\fP returns success (zero result) if the specified condition is
-satisfied, and failure (nonzero result) otherwise. The comparator must be one of
-\fBlt le eq ne ge gt\fP.
+satisfied, and failure (non-zero result) otherwise. The comparator must be one
+of \fBlt le eq ne ge gt\fP.
+.TP
+\fB\-d\fR, \fB\-\-to\-deb\fR \fIversion\fP
+Converts Mozilla \fIversion\fP into a Debian upstream version. For a full
+Debian version you have to add a revision.
+.TP
+\fB\-m\fR, \fB\-\-to\-moz\fR \fIversion\fP
+Converts Debian \fIversion\fP into a Mozilla version. The Debian revision and
+the epoch will be stripped away.
.SH OPTIONS
.TP
\fB\-h\fR, \fB\-\-help\fR