From e9d51536e1559b3adbcfcc0f0f9b163b13964ddf Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 26 Jan 2015 16:09:09 -0500 Subject: [PATCH] Out-of-tree build via make dist --- lttng-ust/lttng-ust-master.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/lttng-ust/lttng-ust-master.sh b/lttng-ust/lttng-ust-master.sh index e8946a0..cc44167 100755 --- a/lttng-ust/lttng-ust-master.sh +++ b/lttng-ust/lttng-ust-master.sh @@ -37,11 +37,14 @@ python-agent) ;; esac -BUILD_PATH=$WORKSPACE # Build type # oot : out-of-tree build # dist: build via make dist # * : normal tree build +# +# Make sure to move to the build_path before continuing + +BUILD_PATH=$WORKSPACE case "$build" in oot) BUILD_PATH=$WORKSPACE/oot @@ -49,12 +52,25 @@ case "$build" in cd $BUILD_PATH ;; dist) + BUILD_PATH=/tmp/dist + + # Initial configure and generate tarball + ./configure + make dist + + mkdir -p $BUILD_PATH + cp *.tar.* $BUILD_PATH/ + cd $BUILD_PATH + + # Ignore level 1 of tar + tar xvf *.tar.* --strip 1 ;; *) + BUILD_PATH=$WORKSPACE ;; esac -$WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS +$BUILD_PATH/configure --prefix=$PREFIX $CONF_OPTS make V=1 make install -- 2.34.1