From: Jonathan Rajotte Date: Mon, 26 Jan 2015 21:09:09 +0000 (-0500) Subject: Out-of-tree build via make dist X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e9d51536e1559b3adbcfcc0f0f9b163b13964ddf;p=lttng-ci.git Out-of-tree build via make dist --- 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