]> Cypherpunks repositories - gostls13.git/commitdiff
bootstrap.bash: preserve file times when copying
authorDmitri Goutnik <dgoutnik@gmail.com>
Sat, 27 Apr 2019 13:16:36 +0000 (08:16 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 27 Apr 2019 14:36:00 +0000 (14:36 +0000)
Preserve file modification times when copying bootstrap tree,
this makes generated bootstrap more friendly to rsyncing.

Change-Id: I32cde58c25b48d3c00d4413860dbd49a265b0ff2
Reviewed-on: https://go-review.googlesource.com/c/go/+/174217
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/bootstrap.bash

index 92a471828614569ec08ca821ff1f489378035205..88c080a9487e1a502bb1ba470e9a4e484194c79e 100755 (executable)
@@ -45,7 +45,7 @@ fi
 unset GOROOT
 src=$(cd .. && pwd)
 echo "#### Copying to $targ"
-cp -R "$src" "$targ"
+cp -Rp "$src" "$targ"
 cd "$targ"
 echo
 echo "#### Cleaning $targ"