forked from KallistiOS/KallistiOS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenviron.sh.master
29 lines (26 loc) · 1.14 KB
/
environ.sh.master
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Master KallistiOS Environment Setup
#
# This script is responsible for setting up and maintaining your
# KOS build environment dynamically. It ensures that any new settings
# added to environ.sh.sample (the maintainers' version) are available
# while preserving the user's custom overrides from environ.sh (their
# local version).
#
# **Important:** Do not edit this script. Instead, make your customizations
# in environ.sh. This approach ensures you benefit from updates made to
# environ.sh.sample without losing your local settings.
#
# This script is typically sourced in your current shell environment
# (probably by .bashrc, .bash_profile, or something similar), so that
# the KOS environment is set up automatically for each shell session.
#
# The base directory for your KallistiOS installation.
# This is automatically set to the directory where the environ.sh.master
# file is located.
KOS_PATH=$(cd "$(dirname "${BASH_SOURCE[0]:-${(%):-%N}}")" && pwd)
# Source the default environment settings
. "${KOS_PATH}/doc/environ.sh.sample"
# Source user-specific overrides, if present
if [ -f "${KOS_PATH}/environ.sh" ]; then
. "${KOS_PATH}/environ.sh"
fi