From a46489d23a351e0061b6d809190b30f57b990d0d Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 29 Jun 2017 10:48:47 +0200 Subject: Fix: handling DEST env var in autobuild scripts Change-Id: Idf24c1adf12698d4b5ac7950e3d3c2e25b1c3274 Signed-off-by: Romain Forlot --- autobuild/agl/autobuild.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autobuild/agl') 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} -- cgit 1.2.3-korg