Bug 1914004 - Part 1: Add RootedTuple and RootedField to allow rooting multiple thing...
[gecko.git] / taskcluster / scripts / misc / build-upx.sh
blob12462b11775abbd854f3c5ebace455b62de70c09
1 #!/bin/bash
2 set -x -e -v
4 WORKSPACE=$HOME/workspace
5 INSTALL_DIR=$WORKSPACE/upx
7 mkdir -p $INSTALL_DIR/bin
9 cd $WORKSPACE
11 git clone -n https://github.com/upx/upx.git upx-clone
12 cd upx-clone
13 # https://github.com/upx/upx/releases/tag/v3.95
14 git checkout 7a3637ff5a800b8bcbad20ae7f668d8c8449b014 # Asserts integrity of the clone (right?)
15 git submodule update --init --recursive
16 cd src
17 make -j$(nproc) CXXFLAGS_WERROR=
18 cp upx.out $INSTALL_DIR/bin/upx
20 # --------------
22 cd $WORKSPACE
23 tar caf upx.tar.zst upx
25 mkdir -p $UPLOAD_DIR
26 cp upx.tar.* $UPLOAD_DIR