summaryrefslogtreecommitdiff
path: root/make-dist
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-24 16:18:33 +0000
committerJim Blandy <jimb@redhat.com>1993-05-24 16:18:33 +0000
commitf78d789dba50c26fd804af20cbab7a6cbd3e788c (patch)
tree39884990365189c7391ffc7bba3ce64a3ab88b96 /make-dist
parentf17a18c96a9d1c8710acafa3063c010703e4f92b (diff)
downloademacs-f78d789dba50c26fd804af20cbab7a6cbd3e788c.tar.gz
* make-dist: When breaking links, remove the link before moving
the copy onto it, to avoid interactive behavior.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist3
1 files changed, 2 insertions, 1 deletions
diff --git a/make-dist b/make-dist
index 09211d6239b..ac2bd91b0f1 100755
--- a/make-dist
+++ b/make-dist
@@ -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."