summaryrefslogtreecommitdiffstats
path: root/autobuild/agl
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-05-20 23:51:43 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-05-21 04:50:15 -0700
commit481e2d73b8c3f9cd9a28611ddb6ae190225dc36a (patch)
tree7d5a97f182951f8517e9de41fa4889f5772f2c26 /autobuild/agl
parent9eb3a90df3681586b58146b47eea7f3848c348a0 (diff)
Avoid copying over the same file with the wgt output, and prevent the following error: cp: 'build/vshl-core.wgt' and 'build/vshl-core.wgt' are the same file make: *** [autobuild/agl/autobuild:62: package] Error 1 Bug-AGL: SPEC-2430 Change-Id: I596fa8d6bf4b31ad10ca55b475d91ed89ce783e0 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'autobuild/agl')
-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