1 .TH DH_TESTVERSION 1 "" "Debhelper Commands" "Debhelper Commands"
3 dh_testversion \- ensure that the correct version of debhelper is installed
5 .B dh_testversion [debhelper options] [operator] [version]
7 Note: This program is deprecated. You should use build dependencies instead.
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.
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.
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
26 for a list of options common to all debhelper commands.
29 Optional comparison operator used in comparing the versions. If not
30 specified, ">=" is used. For descriptions of the comparison operators, see
34 Version number to compare against the current version of debhelper. If not
35 specified, dh_testversion does nothing.
39 Make sure debhelper version 1.0 or higher is installed.
41 .I dh_testversion ge 1.0
42 Another way to make sure debhelper version 1.0 or higher is installed.
44 .I dh_testversion lt 1.0
45 Make sure a version of debhelper less than version 1.0 is installed.
49 for a list of environment variables that affect all debhelper commands.
53 Joey Hess <joeyh@debian.org>