diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2017-03-25 14:03:55 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-27 11:08:34 +0100 |
commit | f5187871ce03fc24cb0017cff1089a288f50a24f (patch) | |
tree | 83fa8184f091b1eacaecdb689609cdfdda2a6f5f /meta/classes/go.bbclass | |
parent | 871363251a2de8fd701e80f711fbd3770dbf992e (diff) | |
download | poky-f5187871ce03fc24cb0017cff1089a288f50a24f.tar.gz |
classes: Replace "if test" file tests with POSIX file testsuninative-1.6
In entire meta/classes/ directory, replace shell tests of the form
"if test -? ..." with POSIX tests of the form "if [ -? ...
(From OE-Core rev: 78928016f4cf38cf6751cb089200bf950d07ae93)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/go.bbclass')
-rw-r--r-- | meta/classes/go.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index 42bbd73cf8..85f71a2e9a 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass | |||
@@ -36,7 +36,7 @@ GO_INSTALL ?= "${GO_IMPORT}/..." | |||
36 | 36 | ||
37 | do_go_compile() { | 37 | do_go_compile() { |
38 | GOPATH=${S}:${STAGING_LIBDIR}/${TARGET_SYS}/go go env | 38 | GOPATH=${S}:${STAGING_LIBDIR}/${TARGET_SYS}/go go env |
39 | if test -n "${GO_INSTALL}" ; then | 39 | if [ -n "${GO_INSTALL}" ]; then |
40 | GOPATH=${S}:${STAGING_LIBDIR}/${TARGET_SYS}/go go install -v ${GO_INSTALL} | 40 | GOPATH=${S}:${STAGING_LIBDIR}/${TARGET_SYS}/go go install -v ${GO_INSTALL} |
41 | fi | 41 | fi |
42 | } | 42 | } |
@@ -61,7 +61,7 @@ do_go_install() { | |||
61 | 61 | ||
62 | chown -R root:root "${D}${GOROOT_FINAL}" | 62 | chown -R root:root "${D}${GOROOT_FINAL}" |
63 | 63 | ||
64 | if test -e "${D}${GOBIN_FINAL}" ; then | 64 | if [ -e "${D}${GOBIN_FINAL}" ]; then |
65 | install -d -m 0755 "${D}${bindir}" | 65 | install -d -m 0755 "${D}${bindir}" |
66 | find "${D}${GOBIN_FINAL}" ! -type d -print0 | xargs -r0 mv --target-directory="${D}${bindir}" | 66 | find "${D}${GOBIN_FINAL}" ! -type d -print0 | xargs -r0 mv --target-directory="${D}${bindir}" |
67 | rmdir -p "${D}${GOBIN_FINAL}" || true | 67 | rmdir -p "${D}${GOBIN_FINAL}" || true |