]> git.donarmstrong.com Git - debhelper.git/blob - dh_testversion.1
r275: No idea.
[debhelper.git] / dh_testversion.1
1 .TH DH_TESTROOT 1
2 .SH NAME
3 dh_testversion \- ensure that the correct version of debhelper is installed
4 .SH SYNOPSIS
5 .B dh_testversion [operator] [version]
6 .SH "DESCRIPTION"
7 dh_testversion compares the version of debhelper against the version you
8 specify, and if the condition is not met, exits with an error message.
9 .P
10 You should use this in your debian/rules files if a new debhelper feature is
11 introduced, and your package requires that feature to build correctly. Use
12 debhelper's changelog to figure out the version you need.
13 .P
14 Be sure not to overuse dh_testversion. If debhelper version 9.5
15 introduces a new dh_autofixbugs command, and your package uses it, then if
16 someone tries to build it with debhelper 1.0, the build will fail anyway when
17 dh_autofixbugs cannot be found, so there is no need for you to use
18 dh_testversion.
19 .SH OPTIONS
20 .TP
21 .B operator
22 Optional comparison operator used in comparing the versions. If not 
23 specified, ">=" is used. For descriptions of the comparison operators, see 
24 dpkg --help.
25 .TP
26 .B version
27 Version number to compare against the current version of debhelper. If not
28 specified, dh_testroot does nothing.
29 .SH EXAMPLES
30 .TP
31 .I dh_testversion 0.50
32 Make sure debhelper version 0.50 or higher is installed.
33 .TP
34 .I dh_testversion ge 0.50
35 Another way to make sure debhelper version 0.50 or higher is installed.
36 .TP
37 .I dh_testversion le 0.50
38 Make sure a version of debhelper less than version 0.50 is installed.
39 .SH ENVIRONMENT
40 .TP
41 .I DH_VERBOSE
42 Enables verbose mode.
43 .SH "SEE ALSO"
44 .BR /usr/doc/debhelper/README
45 .SH AUTHOR
46 Joey Hess <joeyh@master.debian.org>