* make-dist: When breaking links, remove the link before moving

the copy onto it, to avoid interactive behavior.
This commit is contained in:
Jim Blandy 1993-05-24 16:18:33 +00:00
parent fe7cd06e97
commit e94817d7cd

View file

@ -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."