diff options
author | Raquel Medina <raquel.medina@konsulko.com> | 2019-03-01 23:46:54 +0200 |
---|---|---|
committer | Raquel Medina <raquel.medina@konsulko.com> | 2019-03-01 23:47:59 +0200 |
commit | e46b125af7b4ef76e478f1e434c2cfa3497d950f (patch) | |
tree | b833d8bccc96a9cb70bb9ea6f608cddc3c9f743c /autobuild/linux | |
parent | 46e39dc9160fa29b0ce18122c7e669f1042cf9ae (diff) |
autobuild: fix warnings due to cp command exit code
Change-Id: I9c053683f2458615ab122c642b0e4b282a1ee04f
Bug-AGL: SPEC-2164
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Diffstat (limited to 'autobuild/linux')
-rwxr-xr-x | autobuild/linux/autobuild | 8 |
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 |