diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-01-08 17:42:45 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-01-08 17:42:45 -0500 |
commit | 7a31338038368a1ff845711c53d4b95395daa942 (patch) | |
tree | 1aa572ad4eb52b293f451fa17e2eb558b20502b6 /dh_installdocs | |
parent | 3e1f3be0f1bf7c52cacf782f2502de1c32b19597 (diff) |
releasing version 6.0.0
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-x | dh_installdocs | 6 |
1 files changed, 3 insertions, 3 deletions
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"); |