~ubuntu-branches/ubuntu/karmic/debhelper/karmic

« back to all changes in this revision

Viewing changes to dh_installdocs

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-04-24 19:22:46 UTC
  • Revision ID: james.westby@ubuntu.com-20090424192246-ytzyl3azu8bosewc
Tags: 7.2.8ubuntu1
* Merge with Debian unstable. Remaining Ubuntu changes:
  - dh_installudev: Default priority is now 40 by default, the target
    directory is /lib/udev/rules.d, and rules use '-' as separator instead of
    '_'.  Remove files from /etc/udev/rules.d unless they are user modified;
    if modified and of default priority, take care to rename.
    This should eventually go to Debian as well, see Debian #491117.
  - dh_auto_install: add "--install-layout=deb" to setup.py install calls
    (new Python 2.6 policy).
* dh_installxfonts: Drop versioned dependency for xfonts-utils. This
  was only necessary for dapper backports, but since dapper desktop goes
  EOL in two months, and we haven't done dapper backports in ages, this is
  just an unnecessary delta.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
=head1 SYNOPSIS
13
13
 
14
 
B<dh_installdocs> [S<I<debhelper options>>] [B<-A>] [B<-n>] [B<-X>I<item>] [S<I<file ...>>]
 
14
B<dh_installdocs> [S<I<debhelper options>>] [B<-A>] [B<-X>I<item>] [S<I<file ...>>]
15
15
 
16
16
=head1 DESCRIPTION
17
17
 
40
40
Files named debian/package.docs can list other files to be installed.
41
41
 
42
42
Files named debian/package.doc-base, will be installed as doc-base control
43
 
files, and will make this program automatically generate the postinst and
44
 
prerm commands needed to interface with the doc-base package. Note that the
45
 
doc-id will be determined from the "Document:" entry in the
46
 
doc-base control file in question.
 
43
files. Note that the doc-id will be determined from the "Document:" entry
 
44
in the doc-base control file in question.
47
45
 
48
46
If your package needs to register more than one document, you need multiple
49
47
files. To accomplish this, you can use files named debian/package.doc-base.*
57
55
Install all files specified by command line parameters in ALL packages
58
56
acted on.
59
57
 
60
 
=item B<-n>, B<--noscripts>
61
 
 
62
 
Do not modify postinst/prerm scripts.
63
 
 
64
58
=item B<-Xitem>, B<--exclude=item>
65
59
 
66
60
Exclude files that contain "item" anywhere in their filename from
223
217
        foreach my $fn (keys %doc_ids) {
224
218
                doit("install","-g",0,"-o",0,"-m644","-p","debian/$fn",
225
219
                     "$tmp/usr/share/doc-base/$doc_ids{$fn}");
226
 
                if (! $dh{NOSCRIPTS}) {
227
 
                        autoscript($package,"postinst","postinst-doc-base",
228
 
                                "s/#DOC-ID#/$doc_ids{$fn}/",
229
 
                        );
230
 
                        autoscript($package,"prerm","prerm-doc-base",
231
 
                                "s/#DOC-ID#/$doc_ids{$fn}/",
232
 
                        );
233
 
                }
234
220
        }
235
221
}
236
222