summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-08 17:42:45 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-08 17:42:45 -0500
commit7a31338038368a1ff845711c53d4b95395daa942 (patch)
tree1aa572ad4eb52b293f451fa17e2eb558b20502b6 /dh_installdocs
parent3e1f3be0f1bf7c52cacf782f2502de1c32b19597 (diff)
releasing version 6.0.0
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs6
1 files changed, 3 insertions, 3 deletions
diff --git a/dh_installdocs b/dh_installdocs
index 0350f87..e335df7 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");