summaryrefslogtreecommitdiff
path: root/dh_movefiles
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:52:52 +0000
committerjoey <joey>1999-08-17 04:52:52 +0000
commit45c35fdc6dc8a330bae1806f5e8b826fcc9d7e3f (patch)
treef50efc08a6cc41dc6e0a0cba1092735086a0c3be /dh_movefiles
parentc23376be4411c256f140eda7ca2587bb77704683 (diff)
downloaddebhelper-45c35fdc6dc8a330bae1806f5e8b826fcc9d7e3f.tar.gz
r91: Initial Import
Diffstat (limited to 'dh_movefiles')
-rwxr-xr-xdh_movefiles17
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