changeset 19962:07e5f3623def

(making links to `src'): Keep timestamp on copied files.
author Richard M. Stallman <rms@gnu.org>
date Sun, 21 Sep 1997 12:32:49 +0000
parents be32396bfb04
children 2f60572de4d1
files make-dist
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make-dist	Sat Sep 20 23:20:37 1997 +0000
+++ b/make-dist	Sun Sep 21 12:32:49 1997 +0000
@@ -344,12 +344,12 @@
      # 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