diff options
author | joey <joey> | 1999-08-17 04:52:52 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:52:52 +0000 |
commit | 45c35fdc6dc8a330bae1806f5e8b826fcc9d7e3f (patch) | |
tree | f50efc08a6cc41dc6e0a0cba1092735086a0c3be /dh_movefiles | |
parent | c23376be4411c256f140eda7ca2587bb77704683 (diff) | |
download | debhelper-45c35fdc6dc8a330bae1806f5e8b826fcc9d7e3f.tar.gz |
r91: Initial Import
Diffstat (limited to 'dh_movefiles')
-rwxr-xr-x | dh_movefiles | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/dh_movefiles b/dh_movefiles index 964d4068..8a365623 100755 --- a/dh_movefiles +++ b/dh_movefiles @@ -33,13 +33,16 @@ for PACKAGE in $DH_DOPACKAGES; do # won't work properly.) tomove="" for i in `(cd debian/tmp ; echo \`cat $files\`)`; do - tomove="`(cd debian/tmp ; \ - find $i ! -type d -and ! -type l -print)` \ - $tomove \ - `(cd debian/tmp ; \ - find $i ! -type d -and -type l -print)`" +tomove="`(cd debian/tmp ;\ +find $i ! -type d -and ! -type l -print)`\ +$tomove\ +`(cd debian/tmp ;\ +find $i ! -type d -and -type l -print)`" done - - complex_doit "(cd debian/tmp;tar --create --remove-files --file - "$tomove") | (cd $TMP;tar xpf -)" + + # Use a filelist, so very weird filenames can be moved. + complex_doit "echo '$tomove' > movelist" + complex_doit "(cd debian/tmp;tar --create --remove-files --files-from=../../movelist --file -) | (cd $TMP;tar xpf -)" + doit "rm -f movelist" fi done |