aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.bash
diff options
context:
space:
mode:
authorDmitri Goutnik <dgoutnik@gmail.com>2019-04-27 08:16:36 -0500
committerBrad Fitzpatrick <bradfitz@golang.org>2019-04-27 14:36:00 +0000
commit930d6ecb69d2a26c545d4ee6e4f217022b945d35 (patch)
tree08b4c225a902812c271ea6aee382b90872116984 /src/bootstrap.bash
parent2b325f8d5240fe46de768b15cb5085eddfa2b8f6 (diff)
downloadgo-930d6ecb69d2a26c545d4ee6e4f217022b945d35.tar.gz
go-930d6ecb69d2a26c545d4ee6e4f217022b945d35.zip
bootstrap.bash: preserve file times when copying
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>
Diffstat (limited to 'src/bootstrap.bash')
-rwxr-xr-xsrc/bootstrap.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap.bash b/src/bootstrap.bash
index 92a4718286..88c080a948 100755
--- a/src/bootstrap.bash
+++ b/src/bootstrap.bash
@@ -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"