summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2019-03-27 11:20:27 +0100
committerFrederic Marec <frederic.marec@iot.bzh>2019-03-27 11:30:34 +0100
commit0a2476c07ac2c51556cbd03c29341d5f5a9c1175 (patch)
tree15dd463d005f9ea43432136c5f0ddb4c77201ced
parent32d6f2f691361e1cfe3bddb163d213a640b3e88d (diff)
autobuild: fix warnings due to cp command exit
Change-Id: I1b40adce0f0ab8b200700de6c457a401fa2dfa1d Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
-rwxr-xr-xautobuild/agl/autobuild8
1 files changed, 6 insertions, 2 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