diff options
author | Raquel Medina <raquel.medina@konsulko.com> | 2019-03-01 23:29:01 +0200 |
---|---|---|
committer | raquel medina <raquel.medina@konsulko.com> | 2019-03-13 08:14:01 +0000 |
commit | 2570b8fb78d409033090eff24eb45467a78e4cb9 (patch) | |
tree | 1d24e0f259dfc3154475b27683762e10aa05725d /autobuild/linux | |
parent | fb10ad2abd051ae2f5148746a71c76fdd5451357 (diff) |
autobuild: fix warnings due to cp command exit code
Change-Id: Icfc22d5e264373644db6b72de818b525aa91462e
Bug-AGL: SPEC-2164
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
(cherry picked from commit a97dd68d9a59dcf05ef114bcac2d1049c84f00e2)
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 |