summaryrefslogtreecommitdiff
path: root/man/moz-version.1
diff options
context:
space:
mode:
authorBenjamin Drung <bdrung@ubuntu.com>2010-01-08 19:06:09 +0100
committerBenjamin Drung <bdrung@ubuntu.com>2010-01-08 19:06:09 +0100
commite0c4fd1e416c60ebc07f441f7e6ff7b7feec9e4e (patch)
treeaa1f120c665c782d4a6e0b60604ad3df0f228ce1 /man/moz-version.1
parent4659a9734b357d1918bdd831a3974cbb041cd7a3 (diff)
* moz-version:
- Add parameter for converting Mozilla versions into Debian upstream versions and the other way round. - update man/moz-version.1 - update src/moz_version.py - update src/moz-version
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