]> git.donarmstrong.com Git - debhelper.git/blob - debhelper.1
r221: Initial Import
[debhelper.git] / debhelper.1
1 .TH DEBHELPER 1 "" "Debhelper Commands" "Debhelper Commands"
2 .SH NAME
3 debhelper \- overview of the debhelper commands
4 .SH SYNOPSIS
5 .B dh_*
6 .I "[-v] [-a] [-i] [-s] [--no-act] [-ppackage] [-Npackage] [-Ptmpdir]"
7 .SH "DESCRIPTION"
8 Debhelper is a collection of programs that can be used in debian/rules files
9 to automate common tasks related to building debian binary packages. All the
10 debhelper commands accept a set of options, and this man page is here to
11 document those options and to document debhelper as a whole. For additional 
12 options, and documentation for each individual command, see the commands' own
13 man pages.
14 .SH "SHARED DEBHLPER OPTIONS"
15 The following command line options are supported by all debhelper programs.
16 .TP
17 .B \-v, \--verbose
18 Verbose mode: show all commands that modify the package build directory.
19 .TP
20 .B \--no-act
21 Do not really do anything. If used with -v, the result is that the command
22 will output a list of what it would have done.
23 .TP
24 .B \-a, \--arch
25 Act on all architecture dependent packages.
26 .TP
27 .B \-i, \--indep
28 Act on all architecture independent packages.
29 .TP
30 .B \-ppackage, \--package=package
31 Act on the package named "package".
32 .TP
33 .B \-s, \--same-arch
34 This is a smarter version of the -a flag, that is used in some rare
35 circumstances. It understands that if the control file lists "Architecture: i386"
36 for the package, the package should not be acted on on other architectures. So
37 this flag makes the command act on all "Architecture: any" packages, as well
38 as on any packages that have the current architecture explicitly specified.
39 Constrast to the -a flag, which makes the command work on all packages that
40 are not architecture independant.
41 .TP
42 .B \-Npackage, \--no-package=package
43 Do not act on the specified package even if an -a, -i, or -p option lists
44 the package as one that should be acted on.
45 .TP
46 .B \-Ptmpdir, \--tmpdir=tmpdir
47 Use "tmpdir" for package build directory. 
48 .SH "COMMON DEBHELPER OPTIONS"
49 The following command line options are supported by some debhelper programs.
50 See the man page of each program for a complete explination of what the
51 option does.
52 .TP
53 .B \-n
54 Do not modify postinst/postrm/etc scripts.
55 .TP
56 .B \-Xitem, \--exclude=item
57 Exclude an item from processing.
58 .TP
59 .B \-A, \-all
60 Makes files or other items that are specified on the command line take effect
61 in ALL packages acted on, not just the first.
62 .SH NOTES
63 .TP
64 .B Multiple binary package support
65 .RS
66 If your source package generates more than one binary package, debhelper
67 programs will default to acting on all binary packages when run. If your
68 source package happens to generate one architecture dependent package, and
69 another architecture independent package, this is not the correct behavior,
70 because you need to generate the architecture dependent packages in the
71 binary-arch debian/rules target, and the architecture independent packages
72 in the binary-indep debian/rules target.
73
74 To facilitate this, as well as give you more control over which packages
75 are acted on by debhelper programs, all debhelper programs accept the 
76 .B -a
77 ,
78 .B -i
79 ,
80 .B -p
81 , and
82 .B -s
83 parameters. These parameters are cumulative. If none are given,
84 debhelper programs default to acting on all packages listed in the control
85 file.
86 .P
87 See
88 .BR /usr/doc/debhelper/examples/rules.multi
89 for an example of how to use this.
90 .RE
91 .TP
92 .B Package build directories
93 .RS
94 By default, all debhelper programs assume that the temporary directory used
95 for assembling the tree of files in a package is debian/tmp for the first
96 package listed in debian/control, and debian/<packagename> for each
97 additional package.
98 .P
99 Sometimes, you might want to use some other temporary directory. This is
100 supported by the
101 .B -P
102 flag. For example, "dh_installdocs -Pdebian/tmp", will use debian/tmp as the
103 temporary directory. Note that if you use -P, the debhelper programs can only
104 be acting on a single package at a time. So if you have a package that builds
105 many binary packages, you will need to use the -p flag to specify which
106 binary package the debhelper program will act on.
107 .RE
108 .TP
109 .B Other notes
110 In general, if any debhelper program needs a directory to exist under
111 debian/, it will create it. I haven't bothered to document this in all the
112 man pages, but for example, dh_installdeb knows to make debian/tmp/DEBIAN/
113 before trying to put files there, dh_installmenu knows you need a
114 debian/tmp/usr/lib/menu/ before installing the menu files, etc.
115 .SH "DEBHELPER COMMANDS"
116 Here is the complete list of available debhelper commands.
117 #LIST#
118 .SH ENVIRONMENT
119 .TP
120 .I DH_VERBOSE
121 Enables verbose mode.
122 .TP
123 .I DH_NO_ACT
124 Enables no-act mode.
125 .TP
126 .I DH_OPTIONS
127 Anything in this variable will be prepended to the command line
128 arguments of all debhelper commands. This in useful in some situations,
129 for example, if you need to pass -p to all debhelper commands that will be
130 run. If you use DH_OPTIONS, be sure to use "dh_testversion 1.1.17" - older
131 debhelpers will ignore it and do things you don't want them to.
132 .SH "SEE ALSO"
133 .TP
134 .BR /usr/doc/debhelper/README
135 An introduction to debhelper.
136 .TP
137 .BR /usr/doc/debhelper/examples/
138 A set of example debian/rules files that use debhelper.
139 .TP
140 .BR http://kitenet.net/programs/debhelper/
141 Debhelper web site.
142 .SH AUTHOR
143 Joey Hess <joeyh@master.debian.org>