]> Cypherpunks repositories - gostls13.git/commitdiff
androidtest.bash: remove use of cp --preserve.
authorHyang-Ah (Hana) Kim <hyangah@gmail.com>
Fri, 13 Feb 2015 20:31:00 +0000 (15:31 -0500)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Fri, 13 Feb 2015 21:16:25 +0000 (21:16 +0000)
--preserve flag is not a valid flag for some versions of cp.

Change-Id: I57f5bf21cbe726057fdadcd55b040ef7ff5d7479
Reviewed-on: https://go-review.googlesource.com/4835
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/androidtest.bash

index 4968a00f6e9224820b32bd6823a676fd2cfafc5c..ee97e30d582428eeb40f59fb2ea56de6506020ba 100755 (executable)
@@ -44,9 +44,9 @@ GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH go build \
 export ANDROID_PRODUCT_OUT=/tmp/androidtest-$$
 FAKE_GOROOT=$ANDROID_PRODUCT_OUT/data/local/tmp/goroot
 mkdir -p $FAKE_GOROOT
-cp -R --preserve=all "${GOROOT}/src" "${FAKE_GOROOT}/"
-cp -R --preserve=all "${GOROOT}/test" "${FAKE_GOROOT}/"
-cp -R --preserve=all "${GOROOT}/lib" "${FAKE_GOROOT}/"
+cp -a "${GOROOT}/src" "${FAKE_GOROOT}/"
+cp -a "${GOROOT}/test" "${FAKE_GOROOT}/"
+cp -a "${GOROOT}/lib" "${FAKE_GOROOT}/"
 echo '# Syncing test files to android device'
 time adb sync data &> /dev/null
 echo ''