1
0
Fork 0
firefox/taskcluster/scripts/misc/build-7zz.sh
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
445 B
Bash
Executable file

#!/bin/bash
set -x -e -v
# This script is for building 7-zip for Linux.
PROJECT=7zz
cd ${MOZ_FETCHES_DIR}/${PROJECT}
# Replace CR/LF line endings with Unix LF endings
find . -name "*.mak" -exec sed -i 's/\r$//' {} \;
pushd CPP/7zip/Bundles/Alone2
make -f ../../cmpl_gcc.mak
popd
mkdir ${PROJECT}
mv CPP/7zip/Bundles/Alone2/b/g/7zz ${PROJECT}/7zz
tar -acf ${PROJECT}.tar.zst ${PROJECT}
mkdir -p $UPLOAD_DIR
mv ${PROJECT}.tar.zst $UPLOAD_DIR