projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jjb: build scripts cleanups
[lttng-ci.git]
/
scripts
/
liburcu
/
build.sh
diff --git
a/scripts/liburcu/build.sh
b/scripts/liburcu/build.sh
index 8a699ea92bcd4691d37c1b68abd45b328fbb50dc..796f4aa02a4a2ac91a213d1ed0b9da3bdd9f669f 100755
(executable)
--- a/
scripts/liburcu/build.sh
+++ b/
scripts/liburcu/build.sh
@@
-69,6
+69,11
@@
verne() {
[ "$res" -ne "0" ]
}
[ "$res" -ne "0" ]
}
+# Required parameters
+arch=${arch:-}
+conf=${conf:-}
+build=${build:-}
+
SRCDIR="$WORKSPACE/src/liburcu"
TMPDIR="$WORKSPACE/tmp"
SRCDIR="$WORKSPACE/src/liburcu"
TMPDIR="$WORKSPACE/tmp"
@@
-124,7
+129,7
@@
static)
CONF_OPTS="--enable-static --disable-shared"
;;
CONF_OPTS="--enable-static --disable-shared"
;;
-tls_fallback)
+tls_fallback)
echo "Using pthread_getspecific() to emulate TLS"
CONF_OPTS="--disable-compiler-tls"
;;
echo "Using pthread_getspecific() to emulate TLS"
CONF_OPTS="--disable-compiler-tls"
;;
@@
-143,7
+148,7
@@
cd "$SRCDIR"
./bootstrap
# Get source version from configure script
./bootstrap
# Get source version from configure script
-eval
`grep '^PACKAGE_VERSION=' ./configure`
+eval
"$(grep '^PACKAGE_VERSION=' ./configure)"
# Build type
# Build type
@@
-165,7
+170,7
@@
oot)
dist)
echo "Distribution out of tree build"
dist)
echo "Distribution out of tree build"
- BUILD_PATH=
`mktemp -d`
+ BUILD_PATH=
$(mktemp -d)
# Initial configure and generate tarball
MAKE=$MAKE "$SRCDIR/configure"
# Initial configure and generate tarball
MAKE=$MAKE "$SRCDIR/configure"
@@
-187,7
+192,7
@@
dist)
esac
# BUILD!
esac
# BUILD!
-$MAKE -j
`$NPROC`
V=1
+$MAKE -j
"$($NPROC)"
V=1
$MAKE install
# Run tests
$MAKE install
# Run tests
This page took
0.023065 seconds
and
4
git commands to generate.