X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_bugfiles;h=2e90e43cb9bb8355a944640cbae5da3b3e28a35f;hb=ed15bc2a33381f18113a95e2e855f4cfb82ee6e9;hp=294144308cc06fe4fba5f89d0ce0cbffc911bbac;hpb=dad2def5fba256e42ee32b9c4d9e697a7d93d339;p=debhelper.git diff --git a/dh_bugfiles b/dh_bugfiles index 2941443..2e90e43 100755 --- a/dh_bugfiles +++ b/dh_bugfiles @@ -19,31 +19,31 @@ dh_bugfiles is a debhelper program that is responsible for installing bug reporting customization files (bug scripts and/or bug control files and/or presubj files) into package build directories. -This helper program installs the following files if they are found: +=head1 FILES -=over 3 +=over 4 -=item B, B +=item debian/I.bug-script -It is the script to be run by the bug reporting program for generating a bug -report template. This file is installed as F into the +This is the script to be run by the bug reporting program for generating a bug +report template. This file is installed as F in the package build directory if no other types of bug reporting customization files are going to be installed for the package in question. Otherwise, this file is installed as F. Finally, the installed script is given execute permissions. -=item B, B +=item debian/I.bug-control It is the bug control file containing some directions for the bug reporting -tool. This file is installed as F into the +tool. This file is installed as F in the package build directory. -=item B, B +=item debian/I.bug-presubj The contents of this file are displayed to the user by the bug reporting tool before allowing the user to write a bug report on the package to the Debian Bug Tracking System. This file is installed as -F into the package build directory. +F in the package build directory. =back @@ -91,16 +91,18 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } # If there is only a bug script to install, install it as - # /usr/share/bug/$package (unless this path is a directory) + # usr/share/bug/$package (unless this path is a directory) if (! -d $dir && scalar(keys(%bugfiles)) == 1 && exists $bugfiles{script}) { doit("install","-D","-p","-m755",$bugfiles{script},$dir); - } elsif (scalar(keys(%bugfiles)) > 0) { + } + elsif (scalar(keys(%bugfiles)) > 0) { if (-f $dir) { # Move usr/share/bug/$package to usr/share/bug/$package/script doit("mv", $dir, "${dir}.tmp"); doit("install","-d",$dir); doit("mv", "${dir}.tmp", "$dir/script"); - } elsif (! -d $dir) { + } + elsif (! -d $dir) { doit("install","-d",$dir); } while (my ($type, $srcfile) = each(%bugfiles)) { @@ -111,14 +113,15 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # Ensure that the bug script is executable if (-f $dir) { chmod 0755, $dir; - } elsif (-f "$dir/script") { + } + elsif (-f "$dir/script") { chmod 0755, "$dir/script"; } } =head1 SEE ALSO -F (needs B package installed) +F L