fune/taskcluster/scripts/misc/build-tup-linux.sh
Mike Shal 1d3020acd2 Bug 1387098 - Tup toolchain task; r=froydnj
Build the latest tup master branch with the LD_PRELOAD dependency
checker.

MozReview-Commit-ID: ALfnnmOZrky

--HG--
extra : rebase_source : 529d4392ef73e03f66fb76f089f8b88f45b44972
2018-02-20 11:12:08 -05:00

24 lines
555 B
Bash
Executable file

#!/bin/bash
set -e -v
# This script is for building tup on Linux.
TUP_REVISION=411cb983147a048ea2bc6f8c56f7f55fd248ce60
WORKSPACE=$HOME/workspace
UPLOAD_DIR=$HOME/artifacts
COMPRESS_EXT=xz
export PATH=$WORKSPACE/build/src/gcc/bin:$PATH
cd $WORKSPACE/build/src
. taskcluster/scripts/misc/tooltool-download.sh
git clone https://github.com/gittup/tup.git
cd tup
git checkout $TUP_REVISION
echo 'CONFIG_TUP_SERVER=ldpreload' > tup.config
./bootstrap-ldpreload.sh
cd ..
tar caf tup.tar.xz tup/tup tup/tup-ldpreload.so tup/tup.1
cp tup.tar.xz $UPLOAD_DIR