diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-05-20 23:51:43 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-05-21 04:50:15 -0700 |
commit | 481e2d73b8c3f9cd9a28611ddb6ae190225dc36a (patch) | |
tree | 7d5a97f182951f8517e9de41fa4889f5772f2c26 /autobuild/linux | |
parent | 9eb3a90df3681586b58146b47eea7f3848c348a0 (diff) |
autobuild: fix build script copy issuehalibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut_7.99.1halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.2halibut/7.99.18.0.28.0.18.0.07.99.37.99.27.99.1
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/linux')
-rwxr-xr-x | autobuild/linux/autobuild | 8 |
1 files changed, 6 insertions, 2 deletions
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 |