autobuild: fix warnings due to cp command exit error 89/20589/1 guppy 7.0.1 7.0.2 7.0.3 7.0.4 guppy/7.0.1 guppy/7.0.2 guppy/7.0.3 guppy/7.0.4 guppy_7.0.1 guppy_7.0.2 guppy_7.0.3 guppy_7.0.4
authorRaquel Medina <raquel.medina@konsulko.com>
Mon, 25 Feb 2019 15:13:42 +0000 (17:13 +0200)
committerraquel medina <raquel.medina@konsulko.com>
Wed, 13 Mar 2019 08:13:35 +0000 (08:13 +0000)
Change-Id: I8afacb63d0932d098b8672b69fc6831a6253de40
Bug-AGL: SPEC-2164
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
(cherry picked from commit f9661aeff16d60a62cf87cdf930a843c4b17826d)

autobuild/agl/autobuild
autobuild/linux/autobuild

index a832db4..db00c1a 100755 (executable)
@@ -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
index a832db4..db00c1a 100755 (executable)
@@ -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