jjb: Add env and os details printing to build jobs
[lttng-ci.git] / scripts / babeltrace / release.sh
index 43db8dbe0903faae3b8590da820c00dd89010c17..beff09718a1652052268d61b8a8d6192703c8d53 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash -exu
+#!/bin/bash
 #
 # Copyright (C) 2015 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 # Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com>
@@ -16,6 +16,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+set -exu
+
 # Version compare functions
 vercomp () {
     set +u
@@ -116,7 +118,7 @@ TARBALL_FILE="$BASENAME-$PACKAGE_VERSION.tar.bz2"
 
 
 # Make sure the reported version matches the current git tag
-GIT_TAG="$(git describe --exact-match --tags $(git log -n1 --pretty='%h')|| echo 'undefined')"
+GIT_TAG="$(git describe --exact-match --tags "$(git log -n1 --pretty='%h')" || echo 'undefined')"
 
 if [ "v$PACKAGE_VERSION" != "$GIT_TAG" ]; then
   echo "Git checkout is not tagged or doesn't match the reported version."
@@ -124,7 +126,7 @@ if [ "v$PACKAGE_VERSION" != "$GIT_TAG" ]; then
 fi
 
 # Generate release tarball
-./configure "${CONF_OPTS[@]}"
+./configure
 make dist
 cp "./$TARBALL_FILE" "$OUTDIR/"
 
This page took 0.052514 seconds and 4 git commands to generate.