From: Jonathan Rajotte Date: Mon, 26 Jan 2015 22:04:04 +0000 (-0500) Subject: Fix: use temp directory to build when doing dist build_type X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b091cfedf52652ec9f5b7b83d30053cc8ceb5acf;p=lttng-ci.git Fix: use temp directory to build when doing dist build_type --- diff --git a/lttng-ust/lttng-ust-master.sh b/lttng-ust/lttng-ust-master.sh index 7fef714..31a55c4 100755 --- a/lttng-ust/lttng-ust-master.sh +++ b/lttng-ust/lttng-ust-master.sh @@ -54,7 +54,7 @@ case "$build" in $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS ;; dist) - BUILD_PATH=/tmp/dist + BUILD_PATH=`mktemp -d` # Initial configure and generate tarball ./configure @@ -98,3 +98,7 @@ make clean # Cleanup rpath and libtool .la files find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \; find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \; + +if [ $build = "dist" ] then + rm -rf $BUILD_PATH +fi