Files
RetroDebian/builder/bash/run_profile_build.sh
2026-04-02 23:31:02 +02:00

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