mirror of
https://github.com/ironfox-oss/IronFox.git
synced 2026-04-20 06:58:04 -04:00
29 lines
714 B
Bash
Executable File
29 lines
714 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Set-up our environment
|
|
if [[ -z "${IRONFOX_SET_ENVS+x}" ]]; then
|
|
bash -x $(dirname $0)/env.sh
|
|
fi
|
|
source $(dirname $0)/env.sh
|
|
|
|
# Prepare to build IronFox
|
|
readonly IRONFOX_FROM_PREBUILD=1
|
|
export IRONFOX_FROM_PREBUILD
|
|
if [ "${IRONFOX_LOG_PREBUILD}" == 1 ]; then
|
|
readonly PREBUILD_LOG_FILE="${IRONFOX_LOG_DIR}/prebuild.log"
|
|
|
|
# If the log file already exists, remove it
|
|
if [ -f "${PREBUILD_LOG_FILE}" ]; then
|
|
rm "${PREBUILD_LOG_FILE}"
|
|
fi
|
|
|
|
# Ensure our log directory exists
|
|
mkdir -vp "${IRONFOX_LOG_DIR}"
|
|
|
|
bash -x "${IRONFOX_SCRIPTS}/prebuild-if.sh" > >(tee -a "${PREBUILD_LOG_FILE}") 2>&1
|
|
else
|
|
bash -x "${IRONFOX_SCRIPTS}/prebuild-if.sh"
|
|
fi
|