From 481e2d73b8c3f9cd9a28611ddb6ae190225dc36a Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 20 May 2019 23:51:43 -0700 Subject: autobuild: fix build script copy issue 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 --- autobuild/agl/autobuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'autobuild/agl') 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 -- cgit 1.2.3-korg