r42164 - /website/debhelper.pod

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Thu Aug 20 16:29:45 UTC 2009


Author: jawnsy-guest
Date: Thu Aug 20 16:29:39 2009
New Revision: 42164

URL: http://svn.debian.org/wsvn/?sc=1&rev=42164
Log:
Note unwanted files should be removed prior to trying to remove directories.

Modified:
    website/debhelper.pod

Modified: website/debhelper.pod
URL: http://svn.debian.org/wsvn/website/debhelper.pod?rev=42164&op=diff
==============================================================================
--- website/debhelper.pod (original)
+++ website/debhelper.pod Thu Aug 20 16:29:39 2009
@@ -113,6 +113,33 @@
 
 =end html
 
+This removes empty directories, ensuring you don't accidentally destroy
+things that should be installed. If the package is installing files that
+you don't need, remove the files first before removing the empty directory.
+
+=begin html
+
+<pre>override_dh_auto_install:
+&#09;dh_auto_install
+&#09;rm $(TMP)/usr/share/perl5/._HTML.pm
+&#09;rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
+</pre>
+
+=end html
+
+If you're really sure, you could also do:
+
+=begin html
+
+<pre>override_dh_auto_install:
+&#09;dh_auto_install
+&#09;rm -rf $(TMP)/usr/share/perl5
+</pre>
+
+=end html
+
+But this might be dangerous, so it's not recommended.
+
 This requires support for overrides, introduced in B<debhelper 7.0.50>
 
 =head2 Fixing Permissions




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