]> git.donarmstrong.com Git - debhelper.git/blob - dh_testversion.1
r423: podized man page
[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 Note: This program is deprecated. You should use build dependencies instead.
8 .P
9 dh_testversion compares the version of debhelper against the version you
10 specify, and if the condition is not met, exits with an error message.
11 .P
12 You should use this in your debian/rules files if a new debhelper feature is
13 introduced, and your package requires that feature to build correctly. Use
14 debhelper's changelog to figure out the version you need.
15 .P
16 Be sure not to overuse dh_testversion. If debhelper version 9.5
17 introduces a new dh_autofixbugs command, and your package uses it, then if
18 someone tries to build it with debhelper 1.0, the build will fail anyway when
19 dh_autofixbugs cannot be found, so there is no need for you to use
20 dh_testversion.
21 .SH OPTIONS
22 .TP
23 .B debhelper options
24 See
25 .BR debhelper (1)
26 for a list of options common to all debhelper commands.
27 .TP
28 .B operator
29 Optional comparison operator used in comparing the versions. If not 
30 specified, ">=" is used. For descriptions of the comparison operators, see 
31 dpkg --help.
32 .TP
33 .B version
34 Version number to compare against the current version of debhelper. If not
35 specified, dh_testversion does nothing.
36 .SH EXAMPLES
37 .TP
38 .I dh_testversion 1.0
39 Make sure debhelper version 1.0 or higher is installed.
40 .TP
41 .I dh_testversion ge 1.0
42 Another way to make sure debhelper version 1.0 or higher is installed.
43 .TP
44 .I dh_testversion lt 1.0
45 Make sure a version of debhelper less than version 1.0 is installed.
46 .SH ENVIRONMENT
47 See
48 .BR debhelper (1)
49 for a list of environment variables that affect all debhelper commands.
50 .SH "SEE ALSO"
51 .BR debhelper (1)
52 .SH AUTHOR
53 Joey Hess <joeyh@debian.org>