From b091cfedf52652ec9f5b7b83d30053cc8ceb5acf Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 26 Jan 2015 17:04:04 -0500 Subject: [PATCH] Fix: use temp directory to build when doing dist build_type --- lttng-ust/lttng-ust-master.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.34.1