build script babeltrace stable 1.0 1.1 1.2
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 14 Jan 2015 22:11:06 +0000 (17:11 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 14 Jan 2015 22:11:06 +0000 (17:11 -0500)
babeltrace/babeltrace-stable-1.0.sh [new file with mode: 0755]
babeltrace/babeltrace-stable-1.1.sh [new file with mode: 0755]
babeltrace/babeltrace-stable-1.2.sh [new file with mode: 0755]

diff --git a/babeltrace/babeltrace-stable-1.0.sh b/babeltrace/babeltrace-stable-1.0.sh
new file mode 100755 (executable)
index 0000000..8391abe
--- /dev/null
@@ -0,0 +1,53 @@
+# Create build directory
+rm -rf $WORKSPACE/build
+mkdir -p $WORKSPACE/build
+
+PREFIX="$WORKSPACE/build"
+
+./bootstrap
+
+CONF_OPTS=""
+
+case "$conf" in
+static)
+    echo "Static build"
+    CONF_OPTS="--enable-static --disable-shared"
+    ;;
+python_bindings)  
+    echo "Build with python bindings"
+    # We only support bindings built with Python 3
+    export PYTHON="python3"
+    export PYTHON_CONFIG="/usr/bin/python3-config"
+    CONF_OPTS="--enable-python-bindings"
+    ;;
+*)
+    echo "Standard build"
+    CONF_OPTS=""
+    ;;
+esac
+
+./configure --prefix=$PREFIX $CONF_OPTS
+
+make
+make install
+
+rm -rf $WORKSPACE/tap
+mkdir -p $WORKSPACE/tap
+
+cd $WORKSPACE/tests
+
+# Run make check tests
+prove --merge --exec '' - < $WORKSPACE/tests/tests --archive $WORKSPACE/tap/ || true
+
+# TAP plugin is having a hard time with .yml files.
+rm -f $WORKSPACE/tap/meta.yml
+
+# And also with files without extension, so rename all result to *.tap
+find $WORKSPACE/tap/ -type f -exec mv {} {}.tap \;
+
+make clean
+
+# Cleanup rpath and libtool .la files
+find $WORKSPACE/build/bin -executable -type f -exec chrpath --delete {} \;
+find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \;
+find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;
diff --git a/babeltrace/babeltrace-stable-1.1.sh b/babeltrace/babeltrace-stable-1.1.sh
new file mode 100755 (executable)
index 0000000..8391abe
--- /dev/null
@@ -0,0 +1,53 @@
+# Create build directory
+rm -rf $WORKSPACE/build
+mkdir -p $WORKSPACE/build
+
+PREFIX="$WORKSPACE/build"
+
+./bootstrap
+
+CONF_OPTS=""
+
+case "$conf" in
+static)
+    echo "Static build"
+    CONF_OPTS="--enable-static --disable-shared"
+    ;;
+python_bindings)  
+    echo "Build with python bindings"
+    # We only support bindings built with Python 3
+    export PYTHON="python3"
+    export PYTHON_CONFIG="/usr/bin/python3-config"
+    CONF_OPTS="--enable-python-bindings"
+    ;;
+*)
+    echo "Standard build"
+    CONF_OPTS=""
+    ;;
+esac
+
+./configure --prefix=$PREFIX $CONF_OPTS
+
+make
+make install
+
+rm -rf $WORKSPACE/tap
+mkdir -p $WORKSPACE/tap
+
+cd $WORKSPACE/tests
+
+# Run make check tests
+prove --merge --exec '' - < $WORKSPACE/tests/tests --archive $WORKSPACE/tap/ || true
+
+# TAP plugin is having a hard time with .yml files.
+rm -f $WORKSPACE/tap/meta.yml
+
+# And also with files without extension, so rename all result to *.tap
+find $WORKSPACE/tap/ -type f -exec mv {} {}.tap \;
+
+make clean
+
+# Cleanup rpath and libtool .la files
+find $WORKSPACE/build/bin -executable -type f -exec chrpath --delete {} \;
+find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \;
+find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;
diff --git a/babeltrace/babeltrace-stable-1.2.sh b/babeltrace/babeltrace-stable-1.2.sh
new file mode 100755 (executable)
index 0000000..8391abe
--- /dev/null
@@ -0,0 +1,53 @@
+# Create build directory
+rm -rf $WORKSPACE/build
+mkdir -p $WORKSPACE/build
+
+PREFIX="$WORKSPACE/build"
+
+./bootstrap
+
+CONF_OPTS=""
+
+case "$conf" in
+static)
+    echo "Static build"
+    CONF_OPTS="--enable-static --disable-shared"
+    ;;
+python_bindings)  
+    echo "Build with python bindings"
+    # We only support bindings built with Python 3
+    export PYTHON="python3"
+    export PYTHON_CONFIG="/usr/bin/python3-config"
+    CONF_OPTS="--enable-python-bindings"
+    ;;
+*)
+    echo "Standard build"
+    CONF_OPTS=""
+    ;;
+esac
+
+./configure --prefix=$PREFIX $CONF_OPTS
+
+make
+make install
+
+rm -rf $WORKSPACE/tap
+mkdir -p $WORKSPACE/tap
+
+cd $WORKSPACE/tests
+
+# Run make check tests
+prove --merge --exec '' - < $WORKSPACE/tests/tests --archive $WORKSPACE/tap/ || true
+
+# TAP plugin is having a hard time with .yml files.
+rm -f $WORKSPACE/tap/meta.yml
+
+# And also with files without extension, so rename all result to *.tap
+find $WORKSPACE/tap/ -type f -exec mv {} {}.tap \;
+
+make clean
+
+# Cleanup rpath and libtool .la files
+find $WORKSPACE/build/bin -executable -type f -exec chrpath --delete {} \;
+find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \;
+find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;
This page took 0.025062 seconds and 4 git commands to generate.