summaryrefslogtreecommitdiff
path: root/make-dist
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-09-21 12:32:49 +0000
committerRichard M. Stallman <rms@gnu.org>1997-09-21 12:32:49 +0000
commit859c94dee96c6106be89dec9b38f4c669bade051 (patch)
tree3d25fbc995e9d169b22a631386a40a1822f194e7 /make-dist
parent08432bb8e3900c2e30946f40a9523f12907c261c (diff)
downloademacs-859c94dee96c6106be89dec9b38f4c669bade051.tar.gz
(making links to `src'): Keep timestamp on copied files.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist4
1 files changed, 2 insertions, 2 deletions
diff --git a/make-dist b/make-dist
index 6b910af5242..fb60c85e102 100755
--- a/make-dist
+++ b/make-dist
@@ -344,12 +344,12 @@ echo "Making links to \`src'"
# test -f appears to succeed for a symlink
if test -L ../${tempdir}/src/$file; then
rm ../${tempdir}/src/$file
- cp $file ../${tempdir}/src
+ cp -p $file ../${tempdir}/src
chmod a-w ../${tempdir}/src/$file
fi
else
rm ../${tempdir}/src/$file
- cp $file ../${tempdir}/src
+ cp -p $file ../${tempdir}/src
chmod a-w ../${tempdir}/src/$file
fi
done