X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debhelper.pod;h=511b21f4a09cc569d2bfeda5b03c128c28df714d;hb=18a0da8092ea9f3dc48bca92b36f592af25a608d;hp=dad286ee0f5e5b5f2587696c3a5717bc9c0a6760;hpb=1e2489ea10c2c68c35a80e09d3983341cee4659e;p=debhelper.git diff --git a/debhelper.pod b/debhelper.pod index dad286e..511b21f 100644 --- a/debhelper.pod +++ b/debhelper.pod @@ -4,31 +4,31 @@ debhelper - the debhelper tool suite =head1 SYNOPSIS -BI<*> [B<-v>] [B<-a>] [B<-i>] [B<-s>] [B<--no-act>] [B<-ppackage>] [B<-Npackage] [-Ptmpdir>] +BI<*> [B<-v>] [B<-a>] [B<-i>] [B<-s>] [B<--no-act>] [B<-p>I] [B<-N>I] [B<-P>I] =head1 DESCRIPTION -Debhelper is used to help you build a debian package. The philosophy behind +Debhelper is used to help you build a Debian package. The philosophy behind debhelper is to provide a collection of small, simple, and easily -understood tools that are used in debian/rules to automate various common +understood tools that are used in F to automate various common aspects of building a package. This means less work for you, the packager. -It also, to some degree means that these tools can be changed if debian +It also, to some degree means that these tools can be changed if Debian policy changes, and packages that use them will require only a rebuild to comply with the new policy. -A typical debian/rules file that uses debhelper will call several debhelper +A typical F file that uses debhelper will call several debhelper commands in sequence, or use L to automate this process. Examples of rules files that use debhelper are in F -To create a new debian package using debhelper, you can just copy one of -the sample rules files and edit it by hand. Or you can try the dh-make +To create a new Debian package using debhelper, you can just copy one of +the sample rules files and edit it by hand. Or you can try the B package, which contains a L command that partially -automates the process. For a more gentle introduction, the maint-guide debian +automates the process. For a more gentle introduction, the B Debian package contains a tutorial about making your first package using debhelper. =head1 DEBHELPER COMMANDS -Here is the complete list of available debhelper commands. See their man +Here is the list of debhelper commands you can use. See their man pages for additional documentation. =over 4 @@ -37,8 +37,20 @@ pages for additional documentation. =back -If a program's name starts with "dh_", and the program is not on the above -list, then it is not part of the debhelper package, but it should still +=head2 Deprecated Commands + +A few debhelper commands are deprecated and should not be used. + +=over 4 + +#LIST_DEPRECATED# + +=back + +=head2 Other Commands + +If a program's name starts with B, and the program is not on the above +lists, then it is not part of the debhelper package, but it should still work like the other programs described on this page. =head1 DEBHELPER CONFIG FILES @@ -47,34 +59,40 @@ Many debhelper commands make use of files in F to control what they do. Besides the common F and F, which are in all packages, not just those using debhelper, some additional files can be used to configure the behavior of specific debhelper commands. These -files are typically named debian/package.foo (where "package" of course, +files are typically named debian/I.foo (where I of course, is replaced with the package that is being acted on). -For example, dh_installdocs uses files named debian/package.docs to list +For example, B uses files named F to list the documentation files it will install. See the man pages of individual commands for details about the names and formats of the files they use. Generally, these files will list files to act on, one file per line. Some programs in debhelper use pairs of files and destinations or slightly more complicated formats. -Note that if a package is the first (or only) binary package listed in -debian/control, debhelper will use debian/foo if no debian/package.foo -file can be found. +Note for the first (or only) binary package listed in +F, debhelper will use F when there's no +F file. In some rare cases, you may want to have different versions of these files -for different architectures. If files named debian/package.foo.arch -exist, where "arch" is the same as the output of -"dpkg-architecture -qDEB_HOST_ARCH", +for different architectures or OSes. If files named debian/I.foo.I +or debian/I.foo.I exist, where I and I are the same as the +output of "B" / +"B", then they will be used in preference to other, more general files. -In many cases, these config files are used to specify various types of +Mostly, these config files are used to specify lists of various types of files. Documentation or example files to install, files to move, and so on. When appropriate, in cases like these, you can use standard shell wildcard -characters ('?' and '*' and '[..]' character classes) in the files. - -You can also put comments in these files; lines beginning with "#" are +characters (B and B<*> and B<[>I<..>B<]> character classes) in the files. +You can also put comments in these files; lines beginning with B<#> are ignored. +The syntax of these files is intentionally kept very simple to make them +easy to read, understand, and modify. If you prefer power and complexity, +you can make the file executable, and write a program that outputs +whatever content is appropriate for a given situation. When you do so, +the output is not further processed to expand wildcards or strip comments. + =head1 SHARED DEBHELPER OPTIONS The following command line options are supported by all debhelper programs. @@ -92,30 +110,26 @@ will output what it would have done. =item B<-a>, B<--arch> -Act on all architecture dependent packages. +Act on architecture dependent packages that should be built for the +build architecture. =item B<-i>, B<--indep> Act on all architecture independent packages. -=item B<->I, B<--package=>I +=item B<-p>I, B<--package=>I -Act on the package named "package". This option may be specified multiple +Act on the package named I. This option may be specified multiple times to make debhelper operate on a given set of packages. =item B<-s>, B<--same-arch> -This is a smarter version of the -a flag, that is used in some rare -circumstances. It understands that if the control file lists "Architecture: i386" -for the package, the package should not be acted on on other architectures. So -this flag makes the command act on all "Architecture: any" packages, as well -as on any packages that have the current architecture explicitly specified. -Contrast to the -a flag, which makes the command work on all packages that -are not architecture independent. +This used to be a smarter version of the B<-a> flag, but the B<-a> flag is now +equally smart. =item B<-N>I, B<--no-package=>I -Do not act on the specified package even if an -a, -i, or -p option lists +Do not act on the specified package even if an B<-a>, B<-i>, or B<-p> option lists the package as one that should be acted on. =item B<--remaining-packages> @@ -128,24 +142,31 @@ process the rest of packages with default settings. =item B<--ignore=>I -Ignore the specified file. This can be used if debian/ contains a debhelper +Ignore the specified file. This can be used if F contains a debhelper config file that a debhelper command should not act on. Note that -debian/compat, debian/control, and debian/changelog can't be ignored, but +F, F, and F can't be ignored, but then, there should never be a reason to ignore those files. -For example, if upstream ships a debian/init that you don't want -dh_installinit to install, use --ignore=debian/init +For example, if upstream ships a F that you don't want +B to install, use B<--ignore=debian/init> =item B<-P>I, B<--tmpdir=>I -Use "tmpdir" for package build directory. The default is debian/ +Use I for package build directory. The default is debian/I =item B<--mainpackage=>I This little-used option changes the package which debhelper considers the -"main package", that is, the first one listed in debian/control, and the -one for which debian/foo files can be used instead of the usual -debian/package.foo files. +"main package", that is, the first one listed in F, and the +one for which F files can be used instead of the usual +F files. + +=item B<-O=>I