authorchloe caruso <git@paperclover.net> 2024-09-20 01:02:01-07:00
committerchloe caruso <git@paperclover.net> 2024-09-20 01:02:01-07:00
log79afe7261525b68f8cc11c85fe30bc28eb6e6ef0
tree2e31faa0077ae956d7ac762bc417ec9ca83d316d
parent6779fc04ddcdd11cb413cbb3e1636037bd63132b

chore: add xz as a dependency in build script


1 files changed, 8 insertions(+), 5 deletions(-)

build+8-5
......@@ -3,9 +3,9 @@
33# It automatically installs a Zig compiler to ./.zig-cache
44# if needed. The output will be in ./zig-out/bin.
55#
6# `curl` and `tar` is required in order to download and
7# extract Zig, respectively. The rest of the dependencies
8# are downloaded compiled using the Zig build system.
6# `curl`, `tar`, and `xz` are required in order to download
7# and extract Zig. The rest of the dependencies are compiled
8# from source using the Zig build system.
99cd -- "$(dirname -- "$0")"
1010
1111ZIG_VERSION=$(grep .minimum_zig_version build.zig.zon \
......@@ -46,6 +46,7 @@ if [ ! -f "$ZIG" ]; then
4646
4747 CURL=$(command -v curl 2>/dev/null)
4848 TAR=$(command -v tar 2>/dev/null)
49 XZ=$(command -v xz 2>/dev/null)
4950
5051 if [ -z "$CURL" ]; then
5152 printf "This script requires 'curl' to be installed.\n"
......@@ -53,8 +54,10 @@ if [ ! -f "$ZIG" ]; then
5354 if [ -z "$TAR" ]; then
5455 printf "This script requires 'tar' to be installed.\n"
5556 fi
56
57 if [ -z "$CURL" ] || [ -z "$TAR" ]; then
57 if [ -z "$XZ" ]; then
58 printf "This script requires 'xz' to be installed.\n"
59 fi
60 if [ -z "$CURL" ] || [ -z "$TAR" ] || [ -z "$XZ" ]; then
5861 exit 1
5962 fi
6063