summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
944a6c8)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
branches:
- origin/{version}
basedir: src/lttng-ust
branches:
- origin/{version}
basedir: src/lttng-ust
branches:
- origin/{version}
basedir: lttng-ust-java-tests
branches:
- origin/{version}
basedir: lttng-ust-java-tests
oot)
echo "Out of tree build"
BUILD_PATH=$WORKSPACE/oot
oot)
echo "Out of tree build"
BUILD_PATH=$WORKSPACE/oot
- mkdir -p $BUILD_PATH
- cd $BUILD_PATH
- $SRCDIR/configure --prefix=$PREFIX $CONF_OPTS
+ mkdir -p "$BUILD_PATH"
+ cd "$BUILD_PATH"
+ "$SRCDIR/configure" --prefix="$PREFIX" $CONF_OPTS
;;
dist)
echo "Distribution out of tree build"
;;
dist)
echo "Distribution out of tree build"
+ BUILD_PATH="`mktemp -d`"
# Initial configure and generate tarball
# Initial configure and generate tarball
- mkdir -p $BUILD_PATH
- cp *.tar.* $BUILD_PATH/
- cd $BUILD_PATH
+ mkdir -p "$BUILD_PATH"
+ cp ./*.tar.* "$BUILD_PATH/"
+ cd "$BUILD_PATH"
- $TAR xvf *.tar.* --strip 1
+ $TAR xvf ./*.tar.* --strip 1
- $BUILD_PATH/configure --prefix=$PREFIX $CONF_OPTS
+ "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
;;
*)
echo "Standard in-tree build"
;;
*)
echo "Standard in-tree build"
- $BUILD_PATH/configure --prefix=$PREFIX $CONF_OPTS
+ "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
$MAKE install
# Run tests
$MAKE install
# Run tests
$MAKE clean
# Cleanup rpath in executables and shared libraries
$MAKE clean
# Cleanup rpath in executables and shared libraries
-find $PREFIX/lib -name "*.so" -exec chrpath --delete {} \;
+find "$PREFIX/lib" -name "*.so" -exec chrpath --delete {} \;
# Remove libtool .la files
# Remove libtool .la files
-find $PREFIX/lib -name "*.la" -exec rm -f {} \;
+find "$PREFIX/lib" -name "*.la" -exec rm -f {} \;
# Clean temp dir for dist build
if [ "$build" = "dist" ]; then
# Clean temp dir for dist build
if [ "$build" = "dist" ]; then
- cd $SRCDIR
- rm -rf $BUILD_PATH
+ cd "$SRCDIR"
+ rm -rf "$BUILD_PATH"
-./configure --prefix=$PREFIX
+./configure --prefix="$PREFIX"
# generate the scan-build report
# generate the scan-build report
-scan-build -k -o ${SCAN_BUILD_TMPDIR} make
+scan-build -k -o "${SCAN_BUILD_TMPDIR}" make
# get the directory name of the report created by scan-build
# get the directory name of the report created by scan-build
-SCAN_BUILD_REPORT=$( find ${SCAN_BUILD_TMPDIR} -maxdepth 1 -not -empty -not -name `basename ${SCAN_BUILD_TMPDIR}` )
+SCAN_BUILD_REPORT=$( find "${SCAN_BUILD_TMPDIR}" -maxdepth 1 -not -empty -not -name "`basename ${SCAN_BUILD_TMPDIR}`" )
rc=$?
if [ -z "${SCAN_BUILD_REPORT}" ]; then
rc=$?
if [ -z "${SCAN_BUILD_REPORT}" ]; then
fi
echo ">>> Archiving scan-build report to ${SCAN_BUILD_ARCHIVE}"
fi
echo ">>> Archiving scan-build report to ${SCAN_BUILD_ARCHIVE}"
- mv ${SCAN_BUILD_REPORT}/* ${SCAN_BUILD_ARCHIVE}/
+ mv "${SCAN_BUILD_REPORT}/*" "${SCAN_BUILD_ARCHIVE}/"
echo ">>> Removing any temporary files and directories"
rm -rf "${SCAN_BUILD_TMPDIR}"
echo ">>> Removing any temporary files and directories"
rm -rf "${SCAN_BUILD_TMPDIR}"