mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
Backed out changeset 09338587b68e (bug 1458385) Backed out changeset f7791b680d46 (bug 1458385) Backed out changeset cc06a7beb3d1 (bug 1458385) Backed out changeset 3b10487587c3 (bug 1458385)
27 lines
536 B
Bash
Executable file
27 lines
536 B
Bash
Executable file
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
WORKSPACE=$HOME/workspace
|
|
HOME_DIR=$WORKSPACE/build
|
|
INSTALL_DIR=$WORKSPACE/upx
|
|
UPLOAD_DIR=$HOME/artifacts
|
|
|
|
mkdir -p $INSTALL_DIR/bin
|
|
|
|
cd $WORKSPACE
|
|
|
|
git clone -n https://github.com/upx/upx.git upx-clone
|
|
cd upx-clone
|
|
git checkout d31947e1f016e87f24f88b944439bbee892f0429 # Asserts integrity of the clone (right?)
|
|
git submodule update --init --recursive
|
|
cd src
|
|
make -j$(nproc)
|
|
cp upx.out $INSTALL_DIR/bin/upx
|
|
|
|
# --------------
|
|
|
|
cd $WORKSPACE
|
|
tar caf upx.tar.xz upx
|
|
|
|
mkdir -p $UPLOAD_DIR
|
|
cp upx.tar.* $UPLOAD_DIR
|