Files
RetroDebian/builder/bash/run_profile_build.sh
2026-03-31 00:09:26 +02:00

16 lines
407 B
Bash
Executable File

#!/bin/sh
set -eu
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 "${PROFILE_ARTIFACT_DIR:-}" ] || fail "PROFILE_ARTIFACT_DIR is required"
mkdir -p "$PROFILE_ARTIFACT_DIR/final"
exec lh_build "$LIVE_DIR"