summaryrefslogtreecommitdiffstats
path: root/conf.d/autobuild
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-06-29 08:50:44 +0000
committerRomain Forlot <romain.forlot@iot.bzh>2017-06-29 08:50:44 +0000
commitfbf30764a99192dfe193149ce4dc604e02c6b6be (patch)
treeab5e25f67ca7193ea6b4c30cc50646d8c440048f /conf.d/autobuild
parent02f4f432ec885e937904a0968c0ec2505f432d8f (diff)
Fix: autobuild scripts.
Wrong behavior when no DEST variable defined. mkdir failed and copy too. Now mkdir and copy happens only when DEST is defined Change-Id: I8a3701f1f0fae7ecae60195300c3d8d8db4493c7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/autobuild')
-rwxr-xr-xconf.d/autobuild/agl/autobuild4
-rwxr-xr-xconf.d/autobuild/linux/autobuild4
2 files changed, 4 insertions, 4 deletions
diff --git a/conf.d/autobuild/agl/autobuild b/conf.d/autobuild/agl/autobuild
index dc3bdec..31e29f7 100755
--- a/conf.d/autobuild/agl/autobuild
+++ b/conf.d/autobuild/agl/autobuild
@@ -38,9 +38,9 @@ package: build
@mkdir -p ${BUILD_DIR}/$@/lib
@mkdir -p ${BUILD_DIR}/$@/htdocs
@mkdir -p ${BUILD_DIR}/$@/data
- @mkdir -p ${DEST}
+ @[ "${DEST}" ] && mkdir -p ${DEST}
@cmake --build ${BUILD_DIR} --target widget
- @cp ${BUILD_DIR}/*wgt ${DEST}
+ @[ "${DEST}" ] && cp ${BUILD_DIR}/*wgt ${DEST}
${BUILD_DIR}/Makefile:
@[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}
diff --git a/conf.d/autobuild/linux/autobuild b/conf.d/autobuild/linux/autobuild
index dc3bdec..31e29f7 100755
--- a/conf.d/autobuild/linux/autobuild
+++ b/conf.d/autobuild/linux/autobuild
@@ -38,9 +38,9 @@ package: build
@mkdir -p ${BUILD_DIR}/$@/lib
@mkdir -p ${BUILD_DIR}/$@/htdocs
@mkdir -p ${BUILD_DIR}/$@/data
- @mkdir -p ${DEST}
+ @[ "${DEST}" ] && mkdir -p ${DEST}
@cmake --build ${BUILD_DIR} --target widget
- @cp ${BUILD_DIR}/*wgt ${DEST}
+ @[ "${DEST}" ] && cp ${BUILD_DIR}/*wgt ${DEST}
${BUILD_DIR}/Makefile:
@[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}