18 lines
479 B
Bash
Executable File
18 lines
479 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#set -eu # lh_build or even included packages might have error or unset variables..
|
|
set +e
|
|
|
|
SELF_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
. "$SELF_DIR/common.sh"
|
|
|
|
ENV_FILE=${1:-}
|
|
[ -n "$ENV_FILE" ] || fail "Usage: run_profile_build.sh <env-file>"
|
|
load_env_file "$ENV_FILE"
|
|
|
|
[ -n "${LIVE_DIR:-}" ] || fail "LIVE_DIR is required"
|
|
[ -n "${ARTIFACTS_ROOT:-}" ] || fail "ARTIFACTS_ROOT is required"
|
|
mkdir -p "$ARTIFACTS_ROOT/final"
|
|
|
|
cd "$LIVE_DIR" && exec lh_build
|