summaryrefslogtreecommitdiffstats
path: root/autobuild/linux
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-02-27 14:22:06 +0200
committerraquel medina <raquel.medina@konsulko.com>2019-03-13 08:12:26 +0000
commitbb271bdb356c5fce11cb1f51bd2ba5500e8b4afa (patch)
tree4e3cc12136ed541d5fa2d1ecb50eb287bcb1a0e1 /autobuild/linux
parent2d9f949bf6c358ea162b8564df7b1098714774e7 (diff)
autobuild: fix warnings due to cp command exit errorguppy_7.0.1guppy/7.0.17.0.1
Change-Id: Ia563b8bf0a91e9db1f5fe58fe2fa9609c5446074 Bug-AGL: SPEC-2164 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> (cherry picked from commit fe311f49703e9691fa7d515ed84a70b996f7f3e8)
Diffstat (limited to 'autobuild/linux')
-rwxr-xr-xautobuild/linux/autobuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/autobuild/linux/autobuild b/autobuild/linux/autobuild
index a832db4..db00c1a 100755
--- a/autobuild/linux/autobuild
+++ b/autobuild/linux/autobuild
@@ -59,7 +59,9 @@ package: build
@mkdir -p ${BUILD_DIR}/$@/htdocs
@mkdir -p ${BUILD_DIR}/$@/var
@cmake --build ${BUILD_DIR} ${PACKAGE_ARGS} --target widget
- @mkdir -p ${DEST} && cp ${BUILD_DIR}/*.wgt ${DEST}
+ @if [ "${DEST}" != "${BUILD_DIR}" ]; then \
+ mkdir -p ${DEST} && cp ${BUILD_DIR}/*.wgt ${DEST}; \
+ fi
package-test: build
@mkdir -p ${BUILD_DIR}/$@/bin
@@ -69,7 +71,9 @@ package-test: build
@mkdir -p ${BUILD_DIR}/$@/var
@cmake --build ${BUILD_DIR} ${PACKAGE_ARGS} --target widget
@cmake --build ${BUILD_DIR} ${PACKAGE_ARGS} --target test_widget
- @mkdir -p ${DEST} && cp ${BUILD_DIR}/*.wgt ${DEST}
+ @if [ "${DEST}" != "${BUILD_DIR}" ]; then \
+ mkdir -p ${DEST} && cp ${BUILD_DIR}/*.wgt ${DEST}; \
+ fi
install: build
@cmake --build ${BUILD_DIR} ${INSTALL_ARGS} --target install