Harden automation: apply only build patches, default clean, install binaries

This commit is contained in:
2025-12-14 17:03:40 +01:00
parent c30f6ceaea
commit e352e92c3c
3 changed files with 40 additions and 20 deletions

View File

@@ -1,16 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
# Convenience wrapper:
# apply patches -> build -> install
#
# Env:
# SSLTYPE, TARGET, JOBS (see build.sh)
# PREFIX (see install.sh)
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
# Defaults suitable for automation
: "${CLEAN:=1}"
: "${PREFIX:=/usr/local/imap}"
./scripts/apply-patches.sh
./scripts/build.sh
./scripts/install.sh
CLEAN="$CLEAN" ./scripts/build.sh
PREFIX="$PREFIX" ./scripts/install.sh