summaryrefslogtreecommitdiff
path: root/dh_movefiles
diff options
context:
space:
mode:
authorjoey <joey>2002-02-22 21:52:46 +0000
committerjoey <joey>2002-02-22 21:52:46 +0000
commit53775e799ffef734c2a4980eb2e2e1a9754b799a (patch)
treea729964006afb352ca438a7bfbf0dcd0383dac00 /dh_movefiles
parent5221e81cc5f195b32758617409cdc39e12277b82 (diff)
r511: * dh_movefiles: Allow for deeper --sourcedir. Closes: #131363
Diffstat (limited to 'dh_movefiles')
-rwxr-xr-xdh_movefiles4
1 files changed, 3 insertions, 1 deletions
diff --git a/dh_movefiles b/dh_movefiles
index cef89101..4cde0887 100755
--- a/dh_movefiles
+++ b/dh_movefiles
@@ -125,7 +125,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
$file=~s:^\Q$sourcedir\E/+::;
complex_doit("(cd $sourcedir >/dev/null ; find $file ! -type d -print || true) >> debian/movelist");
}
- complex_doit("(cd $sourcedir >/dev/null ; tar --create --remove-files --files-from=../movelist --file -) | (cd $tmp >/dev/null ;tar xpf -)");
+ my $pwd=`pwd`;
+ chomp $pwd;
+ complex_doit("(cd $sourcedir >/dev/null ; tar --create --remove-files --files-from=$pwd/movelist --file -) | (cd $tmp >/dev/null ;tar xpf -)");
doit("rm","-f","debian/movelist");
}
}