From 930d6ecb69d2a26c545d4ee6e4f217022b945d35 Mon Sep 17 00:00:00 2001 From: Dmitri Goutnik Date: Sat, 27 Apr 2019 08:16:36 -0500 Subject: [PATCH] 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 --- src/bootstrap.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.50.0