From 7a31338038368a1ff845711c53d4b95395daa942 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 8 Jan 2008 17:42:45 -0500 Subject: releasing version 6.0.0 --- dh_installdocs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dh_installdocs') diff --git a/dh_installdocs b/dh_installdocs index 0350f870..e335df74 100755 --- a/dh_installdocs +++ b/dh_installdocs @@ -121,9 +121,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } if (@docs) { - my $exclude = ''; + my $exclude = '\\( -type f -or -type l \\)'; if ($dh{EXCLUDE_FIND}) { - $exclude = ' -and ! \( '.$dh{EXCLUDE_FIND}.' \)'; + $exclude .= ' -and ! \( '.$dh{EXCLUDE_FIND}.' \)'; } if (! compat(4)) { # ignore empty files in subdirs @@ -136,7 +136,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my ($dir_basename) = basename($doc); my $pwd=`pwd`; chomp $pwd; - complex_doit("cd '$doc/..' && find '$dir_basename' \\( -type f -or -type l \\)$exclude -exec cp --parents -dp {} $pwd/$tmp/usr/share/doc/$package \\;"); + complex_doit("cd '$doc/..' && find '$dir_basename' $exclude -exec cp --parents -dp {} $pwd/$tmp/usr/share/doc/$package \\;"); } else { doit("cp", "-a", $doc, "$tmp/usr/share/doc/$package"); -- cgit v1.2.3