summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-02-20 02:19:32 +0200
committerraquel medina <raquel.medina@konsulko.com>2019-03-13 08:05:30 +0000
commitccaceac74b340e93bc68bce628772270e36df2aa (patch)
treea79b3932b70c48628fa52c66ef6d5c154185c000
parent27bcf2e67109935b7bea9dd496198684753f7c8c (diff)
autobuild: fix warnings due to cp command exit codeguppy_7.0.1guppy/7.0.17.0.1
Bug-AGL: SPEC-2164 Change-Id: I98bee08c7af3c6bf4df1ee142968c2672fddd1e2 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> (cherry picked from commit c9a2819c8be755860956c95f46ea9f03427cd16b)
-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