Harden automation: apply only build patches, default clean, install binaries
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user