]> git.donarmstrong.com Git - debhelper.git/blob - dh_testversion.1
r245: Initial Import
[debhelper.git] / dh_testversion.1
1 .TH DH_TESTVERSION 1 "" "Debhelper Commands" "Debhelper Commands"
2 .SH NAME
3 dh_testversion \- ensure that the correct version of debhelper is installed
4 .SH SYNOPSIS
5 .B dh_testversion [debhelper options] [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 debhelper options
22 See
23 .BR debhelper (1)
24 for a list of options common to all debhelper commands.
25 .TP
26 .B operator
27 Optional comparison operator used in comparing the versions. If not 
28 specified, ">=" is used. For descriptions of the comparison operators, see 
29 dpkg --help.
30 .TP
31 .B version
32 Version number to compare against the current version of debhelper. If not
33 specified, dh_testversion does nothing.
34 .SH EXAMPLES
35 .TP
36 .I dh_testversion 1.0
37 Make sure debhelper version 1.0 or higher is installed.
38 .TP
39 .I dh_testversion ge 1.0
40 Another way to make sure debhelper version 1.0 or higher is installed.
41 .TP
42 .I dh_testversion lt 1.0
43 Make sure a version of debhelper less than version 1.0 is installed.
44 .SH ENVIRONMENT
45 See
46 .BR debhelper (1)
47 for a list of environment variables that affect all debhelper commands.
48 .SH "SEE ALSO"
49 .BR debhelper (1)
50 .SH AUTHOR
51 Joey Hess <joeyh@master.debian.org>