summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-06-29 10:48:47 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-06-29 10:48:47 +0200
commita46489d23a351e0061b6d809190b30f57b990d0d (patch)
treed8c3413925e3d4663e70342ae7f0c29f094f7071
parent36271aa4cb701d635e08ee5c8bd48830bd2d266e (diff)
Fix: handling DEST env var in autobuild scripts
Change-Id: Idf24c1adf12698d4b5ac7950e3d3c2e25b1c3274 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rwxr-xr-xautobuild/agl/autobuild.in4
-rwxr-xr-xautobuild/linux/autobuild.in2
2 files changed, 3 insertions, 3 deletions
diff --git a/autobuild/agl/autobuild.in b/autobuild/agl/autobuild.in
index dc3bdec..31e29f7 100755
--- a/autobuild/agl/autobuild.in
+++ b/autobuild/agl/autobuild.in
@@ -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/autobuild/linux/autobuild.in b/autobuild/linux/autobuild.in
index 85b0323..17fae7a 100755
--- a/autobuild/linux/autobuild.in
+++ b/autobuild/linux/autobuild.in
@@ -38,7 +38,7 @@ 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 packaging
${BUILD_DIR}/Makefile: