X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fbabeltrace%2Fbuild.sh;h=2310b3653890630da8bc0b4dfafeafb688ed8baf;hb=c78d77c5ef31f53be100d0fce5d9ea07a5fc8e1d;hp=4dc939d1b1637f12c501e672ab737b4e79974455;hpb=944a6c86f6eab1c0b3d65c2f3f771764851baf05;p=lttng-ci.git diff --git a/scripts/babeltrace/build.sh b/scripts/babeltrace/build.sh index 4dc939d..2310b36 100755 --- a/scripts/babeltrace/build.sh +++ b/scripts/babeltrace/build.sh @@ -16,6 +16,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# Required parameters +arch=${arch:-} +conf=${conf:-} +build=${build:-} + SRCDIR="$WORKSPACE/src/babeltrace" TMPDIR="$WORKSPACE/tmp" @@ -35,6 +40,7 @@ solaris10) NPROC=gnproc BISON=bison YACC="$BISON -y" + export PATH="/opt/csw/bin:/usr/ccs/bin:$PATH" ;; solaris11) MAKE=gmake @@ -109,7 +115,7 @@ case "$build" in dist) echo "Distribution out of tree build" - BUILD_PATH="`mktemp -d`" + BUILD_PATH="$(mktemp -d)" # Initial configure and generate tarball MAKE=$MAKE BISON="$BISON" YACC="$YACC" "$SRCDIR/configure" @@ -138,7 +144,7 @@ case "$build" in esac # BUILD! -$MAKE -j `$NPROC` V=1 +$MAKE -j "$($NPROC)" V=1 $MAKE install # Run tests