summaryrefslogtreecommitdiff
path: root/dh_installexamples
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_installexamples
parent2c14bae5c97fa66c83d94350d2245321f6146d7b (diff)
Support files with spaces in exclude mode. Closes: #459426
Diffstat (limited to 'dh_installexamples')
-rwxr-xr-xdh_installexamples3
1 files changed, 1 insertions, 2 deletions
diff --git a/dh_installexamples b/dh_installexamples
index dcd37ad..0f3651c 100755
--- a/dh_installexamples
+++ b/dh_installexamples
@@ -87,10 +87,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
next if excludefile($example);
if (-d $example && $exclude) {
my ($dir_basename) = basename($example);
- # Pity there's no cp --exclude ..
my $pwd=`pwd`;
chomp $pwd;
- complex_doit("cd $example/.. && find $dir_basename -type f$exclude -exec cp --parents -dp {} $pwd/$tmp/usr/share/doc/$package/examples \\;");
+ complex_doit("cd '$example/..' && find '$dir_basename' -type f$exclude -exec cp --parents -dp {} $pwd/$tmp/usr/share/doc/$package/examples \\;");
}
else {
doit("cp", "-a", $example, "$tmp/usr/share/doc/$package/examples");