summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-07 16:57:42 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-07 16:57:42 -0500
commit5ec65e1c6ffa15fdd4f4b1d852398ad327be5eb2 (patch)
tree7f6a94f63746197f7990a5f0ffdead5ab22244bc /dh_installdocs
parent2c14bae5c97fa66c83d94350d2245321f6146d7b (diff)
Support files with spaces in exclude mode. Closes: #459426
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_installdocs b/dh_installdocs
index 956a7fb8..0350f870 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -136,10 +136,10 @@ 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' \\( -type f -or -type l \\)$exclude -exec cp --parents -dp {} $pwd/$tmp/usr/share/doc/$package \\;");
}
else {
- doit("cp","-a",$doc,"$tmp/usr/share/doc/$package");
+ doit("cp", "-a", $doc, "$tmp/usr/share/doc/$package");
}
}
doit("chown","-R","0:0","$tmp/usr/share/doc");