diff options
author | joey <joey> | 1999-08-17 04:56:36 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:56:36 +0000 |
commit | df34bdaa1381eafc3f6ecea44866849c2a80fe67 (patch) | |
tree | de570165080cd4f3678231401381a2141d0acb2a /dh_movefiles | |
parent | e348bcc96f206a25afc2ad1d4f004c74b7f8ab37 (diff) | |
download | debhelper-df34bdaa1381eafc3f6ecea44866849c2a80fe67.tar.gz |
r105: Initial Import
Diffstat (limited to 'dh_movefiles')
-rwxr-xr-x | dh_movefiles | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/dh_movefiles b/dh_movefiles index a5669bfc..f44121c8 100755 --- a/dh_movefiles +++ b/dh_movefiles @@ -40,16 +40,31 @@ for PACKAGE in $DH_DOPACKAGES; do # # (The echo is in here to expand wildcards. Note that 'ls' # won't work properly.) - # The filelist is used, so even very weird filenames can be + # The file list is used, so even very weird filenames can be # moved. doit "rm -f movelist" for i in `(cd debian/tmp; echo $tomove)`; do - complex_doit "(cd debian/tmp ; find $i ! -type d -and ! -type l -print) >> movelist" + if [ ! -e "debian/tmp/$i" ]; then + fail=1 + fi + complex_doit "(cd debian/tmp ; find $i ! -type d -and ! -type l -print || true) >> movelist" done for i in `(cd debian/tmp; echo $tomove)`; do - complex_doit "(cd debian/tmp ; find $i ! -type d -and -type l -print) >> movelist" + if [ ! -e "debian/tmp/$i" ]; then + fail=1 + fi + complex_doit "(cd debian/tmp ; find $i ! -type d -and -type l -print || true) >> movelist" done complex_doit "(cd debian/tmp;tar --create --remove-files --files-from=../../movelist --file -) | (cd $TMP;tar xpf -)" doit "rm -f movelist" fi done + +# If fail is set, we wern't actually able to find some +# files that were specified to be moved, and we should +# exit with the code in fail. This program puts off +# exiting with an error until all files have been tried +# to be moved, because this makes it easier for some +# packages that arn't always sure exactly which files need +# to be moved. +exit $fail |