Fix: use temp directory to build when doing dist build_type
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 26 Jan 2015 22:04:04 +0000 (17:04 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 26 Jan 2015 22:04:04 +0000 (17:04 -0500)
lttng-ust/lttng-ust-master.sh

index 7fef714585b7af0f2f85d170c6d8519852313502..31a55c41bfda0f2af1ce5c5d15daf1c5277b5e1b 100755 (executable)
@@ -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
This page took 0.023508 seconds and 4 git commands to generate.