* make-dist: When breaking links, remove the link before moving
the copy onto it, to avoid interactive behavior.
This commit is contained in:
parent
fe7cd06e97
commit
e94817d7cd
1 changed files with 2 additions and 1 deletions
|
@ -281,7 +281,8 @@ done
|
|||
#### actually we just re-copy anything with a link count greater
|
||||
#### than two.
|
||||
echo "Breaking intra-tree links."
|
||||
find ${tempdir} ! -type d -links +2 -exec cp {} $$ \; -exec mv $$ {} \;
|
||||
find ${tempdir} ! -type d -links +2 \
|
||||
-exec cp {} $$ \; -exec rm -f {} \; -exec mv $$ {} \;
|
||||
|
||||
if [ "${newer}" ]; then
|
||||
echo "Removing files older than $newer."
|
||||
|
|
Loading…
Add table
Reference in a new issue