Package: debhelper
Version: 7.4.11
Severity: normal
Hi,
attached a patch that prunes away the common revision control system
directories in dh_clean. Also prunes quilts .pc directory.
MfG
Goswin
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31.5-book-1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages debhelper depends on:
ii binutils 2.20-5 The GNU assembler, linker and bina
ii dpkg-dev 1.15.5.6 Debian package development tools
ii file 5.03-5+b1 Determines file type using "magic"
ii html2text 1.3.2a-14 advanced HTML to text converter
ii man-db 2.5.6-5 on-line manual pager
ii perl 5.10.1-9 Larry Wall's Practical Extraction
ii perl-base 5.10.1-9 minimal Perl system
ii po-debconf 1.0.16 tool for managing templates file t
debhelper recommends no packages.
Versions of packages debhelper suggests:
ii dh-make 0.50 tool that converts source archives
-- no debconf information
Description: Prune version control system directories in dh_clean.
Closes: #566861
Author: Goswin von Brederlow <[email protected]>
Bug-Debian: http://bugs.debian.org/566861
Last-Update: 2010-01-27
diff -Nru debhelper-7.4.11/dh_clean debhelper-7.4.11a0.mrvn.1/dh_clean
--- debhelper-7.4.11/dh_clean 2009-11-17 02:30:46.000000000 +0100
+++ debhelper-7.4.11a0.mrvn.1/dh_clean 2010-01-27 15:15:53.000000000 +0100
@@ -125,7 +125,11 @@
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \\
-o -name TAGS -o \\( -path '*/.deps/*' -a -name '*.P' \\) \\
\\) -exec rm -f {} \\; \\) -o \\
- \\( -type d -a -name autom4te.cache -prune -exec rm -rf {} \\;
\\) \\)");
+ \\( -type d -a \\( \\
+ \\( -name autom4te.cache -prune \\
+ -exec rm -rf {} \\; \\) -o \\
+ \\( \\( -name .svn -o -name .git -o -name .hg -o \\
+ -name CVS -o -name .pc \\) -prune \\) \\) \\)
\\)");
}
doit('rm', '-rf', 'debian/tmp') if -x 'debian/tmp' && ! compat(1) &&