* make-dist: When breaking links, remove the link before moving
authorJim Blandy <jimb@redhat.com>
Mon, 24 May 1993 16:18:33 +0000 (16:18 +0000)
committerJim Blandy <jimb@redhat.com>
Mon, 24 May 1993 16:18:33 +0000 (16:18 +0000)
the copy onto it, to avoid interactive behavior.

make-dist

index 09211d6..ac2bd91 100755 (executable)
--- 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."