]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_movefiles
r1582: * dh_makeshlibs: only scan files matching *.so.* and *.so, not *.so*.
[debhelper.git] / dh_movefiles
index cc1af45eba1a2eb2f90a81b4144ed9326e50a84e..2c8a63fd934bbc32f601839caeb331700f765b41 100755 (executable)
@@ -140,7 +140,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                }
                my $pwd=`pwd`;
                chomp $pwd;
-               complex_doit("(cd $sourcedir >/dev/null ; tar --create --remove-files --files-from=$pwd/debian/movelist --file -) | (cd $tmp >/dev/null ;tar xpf -)");
+               complex_doit("(cd $sourcedir >/dev/null ; tar --create --files-from=$pwd/debian/movelist --file -) | (cd $tmp >/dev/null ;tar xpf -)");
+               # --remove-files is not used above because tar then doesn't
+               # preserve hard links
+               complex_doit("(cd $sourcedir >/dev/null ; cat $pwd/debian/movelist | xargs rm -f)");
                doit("rm","-f","debian/movelist");
        }
 }