summaryrefslogtreecommitdiff
path: root/man/moz-version.1
blob: 7eb68d6c7c5431d8f82a1121b9e2e40f7276037e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.\"Copyright (c) 2009 Benjamin Drung <bdrung@ubuntu.com>
.\"
.\"Permission is hereby granted, free of charge, to any person obtaining a copy
.\"of this software and associated documentation files (the "Software"), to deal
.\"in the Software without restriction, including without limitation the rights
.\"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
.\"copies of the Software, and to permit persons to whom the Software is
.\"furnished to do so, subject to the following conditions:
.\"
.\"The above copyright notice and this permission notice shall be included in
.\"all copies or substantial portions of the Software.
.\"
.\"THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
.\"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
.\"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
.\"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
.\"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
.\"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
.\"THE SOFTWARE.
.TH MOZ-VERSION "1" "August 2009" "moz-version" "mozilla-devscripts suite"
.SH NAME
moz-version \- version format handling tool
.SH SYNOPSIS
.B moz-version
[\fIoptions\fP]
\fIaction\fR
.SH DESCRIPTION
.B 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.
.SH ACTIONS
.TP
\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 (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
Display a brief help message.
.TP
\fB\-s\fR, \fB\-\-silent\fR
Do not print anything and die silent on errors.
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Print more information.
.SH AUTHOR
Benjamin Drung <bdrung@gmail.com>