#!/usr/bin/env bash
# shellcheck disable=SC2034
# shellcheck disable=SC2155

# Copyright (C) 2020-2024 Hunter Peavey
# SPDX-License-Identifier: GPL-3.0-or-later

# Do not edit this file! This file belongs to the krack package.

# Misc
readonly VERSION="0.9"

# Colors
readonly WHITE=$(tput sgr0 && tput bold)
readonly GREEN=$(tput sgr0 && tput setaf 2)
readonly RED=$(tput bold && tput setaf 1)
readonly YELLOW=$(tput sgr0 && tput setaf 3)
readonly BLUE=$(tput sgr0 && tput setaf 4)
readonly PURPLE=$(tput sgr0 && tput setaf 5)
readonly CYAN=$(tput sgr0 && tput setaf 6)
readonly NC=$(tput sgr0) # No color/turn off all tput attributes

# krack-build directories
readonly CCACHE_DIR="${HOME}/.cache/ccache"
readonly DATA_DIR="${HOME}/.local/share/krack"
readonly LOG_DIR="${DATA_DIR}/logs"
readonly FAILED_BUILDS_LOG_DIR="${LOG_DIR}/failed-builds"
readonly GIT_DIFF_DIR="${DATA_DIR}/diffs"
readonly MASTER_BUILD_DIR="${DATA_DIR}/packages"
readonly PKG_CACHE_DIR="${DATA_DIR}/pkgcache"
readonly STATUS_DIR="${DATA_DIR}/.status"

# krack-build status files
readonly STATUS_CURRENT_LOG_FILE="${STATUS_DIR}/current-log"
readonly STATUS_STATE_FILE="${STATUS_DIR}/state"
readonly STATUS_SUBSTATE_FILE="${STATUS_DIR}/substate"
readonly STATUS_DATE_BUILD_START_FILE="${STATUS_DIR}/build-start"
readonly STATUS_DATE_MAKE_START_FILE="${STATUS_DIR}/make-start"
readonly STATUS_IMPORTANT_MESSAGE_FILE="${STATUS_DIR}/important"
readonly STATUS_REPORT_FILE="${STATUS_DIR}/report"