mirror of
https://github.com/Feodor2/Mypal68.git
synced 2025-06-19 07:15:36 -04:00
32 lines
623 B
Bash
32 lines
623 B
Bash
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This script is for building mar and mbsdiff
|
|
|
|
WORKSPACE=$HOME/workspace
|
|
UPLOAD_DIR=$HOME/artifacts
|
|
COMPRESS_EXT=xz
|
|
|
|
cd $WORKSPACE/build/src
|
|
|
|
. taskcluster/scripts/misc/tooltool-download.sh
|
|
|
|
export MOZ_OBJDIR=obj-mar
|
|
|
|
echo ac_add_options --enable-project=tools/update-packaging > .mozconfig
|
|
|
|
TOOLCHAINS="binutils clang"
|
|
|
|
for t in $TOOLCHAINS; do
|
|
PATH="$WORKSPACE/build/src/$t/bin:$PATH"
|
|
done
|
|
|
|
./mach build -v
|
|
|
|
mkdir mar-tools
|
|
cp $MOZ_OBJDIR/dist/host/bin/{mar,mbsdiff} mar-tools/
|
|
|
|
tar -acf mar-tools.tar.$COMPRESS_EXT mar-tools/
|
|
mkdir -p $UPLOAD_DIR
|
|
cp mar-tools.tar.$COMPRESS_EXT $UPLOAD_DIR
|