Skip to content

Commit

Permalink
Merge pull request #34 from KallistiOSUnchained/add_master_environ
Browse files Browse the repository at this point in the history
Add master environ.sh for dynamic environment setup
  • Loading branch information
andressbarajas authored Nov 20, 2024
2 parents d9c09ec + de8011e commit 6c4828c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions environ.sh.master
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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.
#

# Source the default environment settings
echo "Sourcing default settings from environ.sh.sample..."
. "doc/environ.sh.sample"

# Source user-specific overrides, if present
if [ -f "./environ.sh" ]; then
echo "Sourcing local overrides from environ.sh.local..."
. "./environ.sh"
fi

0 comments on commit 6c4828c

Please sign in to comment.