]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installinfo
r1931: * dh_installxfonts: In postrm, run the deregistraton code even on upgrade,
[debhelper.git] / dh_installinfo
index 1fde4c53273beea88cf55391284d29f6e42237fa..78dddc7bfc8cc8f08b05f5e8c841bf84e05ac38c 100755 (executable)
@@ -11,12 +11,12 @@ use Debian::Debhelper::Dh_Lib;
 
 =head1 SYNOPSIS
 
-  dh_installinfo [debhelper options] [-A] [-n] [file ...]
+B<dh_installinfo> [S<I<debhelper options>>] [B<-A>] [B<-n>] [S<I<file ...>>]
 
 =head1 DESCRIPTION
 
 dh_installinfo is a debhelper program that is responsible for installing
-info files and registering them with install-info.
+info files and registering the files it installs with install-info.
 
 It determines some information about the info files by parsing them, in
 particular, it looks at the INFO-DIR-SECTION line to determine what section
@@ -30,7 +30,7 @@ will be the first package specified by those flags.
 Files named debian/package.info can list other files to be installed.
 
 dh_installinfo will automatically generate the postinst and prerm commands
-needed to interface with install-info. See L<dh_installdeb(1)> for an
+needed to interface with install-info, updating the info . See L<dh_installdeb(1)> for an
 explanation of how this works.
 
 =head1 OPTIONS
@@ -105,6 +105,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                        
                        if ($section ne '') {
                                $section=~s:/:\\/:g; # allow / in section.
+                               $section=~s/\&/\\&/g; # escape sed specials
+                               $section=~s/(\\[0-9])/\\\\$1/g; # more sed specials
                                autoscript($package,"postinst","postinst-info",
                                        "s/#SECTION#/$section/g;s:#FILE#:$fn:");
                        }
@@ -119,7 +121,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
 =head1 SEE ALSO
 
-L<debhelper(1)>
+L<debhelper(7)>
 
 This program is a part of debhelper.