r40081 - /website/debhelper.pod

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Fri Jul 17 17:59:48 UTC 2009


Author: jawnsy-guest
Date: Fri Jul 17 17:59:42 2009
New Revision: 40081

URL: http://svn.debian.org/wsvn/?sc=1&rev=40081
Log:
Added a section for removing files after installation into a binary .deb

Modified:
    website/debhelper.pod

Modified: website/debhelper.pod
URL: http://svn.debian.org/wsvn/website/debhelper.pod?rev=40081&op=diff
==============================================================================
--- website/debhelper.pod (original)
+++ website/debhelper.pod Fri Jul 17 17:59:42 2009
@@ -78,6 +78,24 @@
 
 =head1 Arcane Uses
 
+=head2 Removing A File
+
+If for some reason you're not able to distribute a file, then you'll need
+to repack it. But if it's just causing issues like warnings with lintian
+or you otherwise don't want it installed, then you can remove it during
+build time by adding this override:
+
+=begin html
+
+<pre>override_dh_auto_install:
+&#09;dh_auto_install
+&#09;rm debian/$(shell dh_listpackages)/usr/share/perl5/Data/Format/._HTML.pm
+</pre>
+
+=end html
+
+This requires support for overrides, introduced in B<debhelper 7.0.50>
+
 =head2 Fixing Permissions
 
 Sometimes debhelper's fix permissions stage (dh_fixperms) sets the wrong




More information about the Pkg-perl-cvs-commits mailing list