summaryrefslogtreecommitdiffstats
path: root/autobuild
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-03-01 23:41:26 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2019-03-01 23:42:45 +0200
commitb2503b916e7ff9513647e0b71b1a13ed4f126ce2 (patch)
tree34f6127a010e09e597e57fe33a238c65011c6f0e /autobuild
parent26fd4ae72184bbab0825bc3dae75207e8fe65c93 (diff)
autobuild: fix warnings due to cp command exit code
Change-Id: Ie821be475cc3cdb56514aec924a44f0947d7d3bf Bug-AGL: SPEC-2164 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Diffstat (limited to 'autobuild')
-rwxr-xr-xautobuild/agl/autobuild8
-rwxr-xr-xautobuild/linux/autobuild8
2 files changed, 12 insertions, 4 deletions
diff --git a/autobuild/agl/autobuild b/autobuild/agl/autobuild
index a832db4..db00c1a 100755
--- a/autobuild/agl/autobuild
+++ b/autobuild/agl/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
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